這是由 Asterisk & Skype 兩大官方合作的商用解決方案產品。這有別於其他使用 Skype API 的外掛方式來開發的方案,相較之下,這個無論是在通話品質或功能整合性都會比較好。
SFA 的特色:
示意圖:
// 線上註冊授權資訊
// 64-bit: http://downloads.digium.com/pub/regi...86-64/register
Notes:
cd /usr/src wget http://downloads.digium.com/pub/register/x86-32/register (32-bit) chmod 0500 register ./register
Please select a category 1 - Digium Products 2 - Cepstral Products 0 - Quit Your Choice: 1 <=== You selected 1, Digium Products Please select a product 1 - Asterisk Business Edition 2 - Asterisk Business Edition C Expansion 3 - Asterisk For Smart Cube 4 - Asterisk For Smart Cube Expansion 5 - G.729 Codec 6 - High Performance Echo Can 7 - Skype For Asterisk 8 - Fax for Asterisk 9 - Free Fax for Asterisk 10 - Vestec Speech Engine 0 - Quit Your Choice: 7 <=== Please enter your Key-ID: 輸入 email 內的 Key 序號 Do you want to register this key now(y/n) y <== Do you accept this licensing agreement (y/n)? y <== First Name: 以下都隨便寫 Last Name: .....
// 安裝 SFA 模組
// 以 Asterisk 1.4.x 為例
cd /usr/src wget http://downloads.digium.com/pub/telephony/skypeforasterisk/asterisk-1.4/x86-32/skypeforasterisk-1.4_1.0.9.2-x86_32.tar.gz tar -xvzf skypeforasterisk-1.4_1.0.9.2-x86_32.tar.gz cd skypeforasterisk-1.4_1.0.9.2-x86_32 make make install make samples
// 以 Asterisk 1.6.2.x為例 (Elastix 2.0)
// 64-bit: http://downloads.digium.com/pub/tele...-x86_64.tar.gz
cd /usr/src wget http://downloads.digium.com/pub/telephony/skypeforasterisk/asterisk-1.6.2.0/x86-32/skypeforasterisk-1.6.2.0_1.1.2-x86_32.tar.gz (32-bit) tar xzf skypeforasterisk-1.6.2.0_1.1.2-x86_32.tar.gz cd skypeforasterisk-1.6.2.0_1.1.2-x86_32 make make install make samples
// 編輯 /etc/asterisk/chan_skype.conf
; 作 Skype 撥出如果未指定帳號,系統將會使用這個預設的 Skype 帳號,而且它也必須是從 SBP 所新增的帳號 default_user=skype-account ; ************* ; USER SECTIONS ; ************* [skype-account] secret=passofskype context=from-pstn exten=skype-account [skype-account-2] secret=passofskype context=from-pstn exten-skype-account-2
註:[...] 填入 Skype 帳號,secret 填入 Skype 密碼,exten 填入 Skype 帳號
// 設定 Inbound Route (Skype -> SIP)
Elastix -> PBX -> PBX Configuration ->Inbound Routes
Description: <自定義>
DID Number: skype-account ;;前一個設定檔的 exten 參數,通常是 Skype 帳號
CID name presfix: Skype:
Set Destination: <可選擇 IVR, extension, 等所有項目>
// 設定 Outbound Route (SIP -> Skype)
Elastix -> PBX -> PBX Configuration -> Extensions
Add Extension
Device: Other(Custom) Device
User Extension: <分機號碼> ;; 這分機是該 Skype 的代表分機號,不可用作其他設備註冊。
Display Name: <分機名稱>
dial: Skype/<朋友的SkypeID> 或 Skype/<Asterisk 的 SkypeID>@<朋友的SkypeID>
註: 沒有指定 <Asterisk 的 SkypeID>時,會使用 chan_skype.conf 的 default_user。
// 設定 SkypeOut (SIP -> SkypeOut)
Elastix -> Trunks
Add Custom Trunk
Custom Dial String: Skype/+$OUTNUM$
這是使用 chan_skype.conf 檔所指定參數 defaul_user 的 skype 帳號所屬的儲值,如果不想用 default_user 的帳號,可改成
Skype/my_second_skype/+$OUTNUM$
Q:執行 CLI> skype show users,總是出現 Logged Out?
A:Asterisk 所設定的 Skype 帳號必須是從 Skype Business Panel(SBP) 新增的帳號,不能使用原先自己申請的帳號或 SBP 的管理帳號。(官方問與答第12項)
Q:SFA 可否運行在 VPS 或虛擬機環境?
A:筆者雖然沒有實作過,但從論壇上的討論文章中,此法應該是可行的,不過在系統裡必須有一個獨立的 ethernet interface(虛擬或實體),且有唯一的 MAC address,否則無法執行 register 工具。
Q:SFA 可否安裝在 embedded asterisk 系統,例如 ATCOM IP04(uClinux OS)?
A:在詢問 digium 後,官方回覆不支援。
Q:如何檢查 license ?
A: asterisk -rx "skype show licenses"
Q:系統重新安裝後,要如何恢復 SFA?
A:因為 SFA license 是綁定網卡的,若原機器並未更換網路卡,在重新安裝系統後,只要重新執行一次 register,且輸入 Key 就可以恢復使用;如果網卡有更換過,就必須聯繫 Digium。
文件 | 大小 | 日期 | 附件上傳者 | |||
---|---|---|---|---|---|---|
![]() | SFA_Application_Scenario.gif Skype for Asterisk Application Scenario | 81.68 KB | 19:43, 24 Apr 2011 | alang | 動作 |
Images 1 | ||
---|---|---|
![]() Skype for Asterisk Application ScenarioSFA_Application_Scenario.gif |
Q: What defines a concurrent call of Skype For Asterisk?
A: A single call on the Skype network which uses one licensed version of Skype for Asterisk
– One Skype account can make multiple calls to different users or phone numbers. Each call uses a license.
– Multiple calls between two users is not currently supported and will be added at a later date
Q: How many users can share a concurrent call?
A: Each user making a call will use a channel. For calls from one user to another user managed on the same Asterisk server, 2 concurrent calls will be used.
Q: Can I use Skype For Asterisk on Switchvox systems?
A: Not at this time but is planned in a future Switchvox release
Q: Can I use Skype For Asterisk with AsteriskNOW and Asterisk Business Edition?
A: Yes 編輯者 18:13, 15 Jul 2010
Add Extension
Device: Other(Custom) Device
User Extension: <分機號碼> ;; 這分機是該 Skype 的代表分機號,不可用作其他設備註冊。
Display Name: <分機名稱>
dial: Skype/<朋友的SkypeID> 或 Skype/<Asterisk 的 SkypeID>@<朋友的SkypeID>
上面的 Skype/<朋友的SkypeID>, Skype是之前建立的trunk名稱嗎?這個trunk要特別建立custom trunk嗎? <朋友的SkypeID>是不是直接的skype帳號? 現在用MSN登入skype, 應該如何處理?
謝謝