Was this page helpful?

Skype for Asterisk (SFA Digium)

    SFA 已於 2011-07-26 停止銷售及活動。已買的頂多只能用到2013年。

    介紹

    這是由 Asterisk & Skype 兩大官方合作的商用解決方案產品。這有別於其他使用 Skype API 的外掛方式來開發的方案,相較之下,這個無論是在通話品質或功能整合性都會比較好。

    SFA 的特色:

    • 可安裝在 Asterisk 主機,不需要額外的機器及其他作業系統。
    • 不需要安裝 Skype 用戶端軟體。
    • 系統運作時,當沒有通話,是不會佔用網路頻寬,但是其他使用 API 方式開發的產品,雖然沒有通話,因為需要啟動 Skype 用戶端,而大家都知道,只要開啟 Skype 軟體,雖然沒有用它來通話,頻寬也會被其他用戶借用。(官方問與答第22項)
    • Codec 直接轉換.不會像一般市面上產品用軟體Audio Bus 做轉換.效過會比較差.
    • 與 Asterisk 連接不會有 DTMF 的問題,也就是可以作 IVR的整合。
    • 透過 Skype Online Number 撥入 Asterisk,可以正常辨識 DTMF。
    • 可設定多組 Skype 帳號,透過 Inbound Route 可以設定不同的應用,但 concurrent channels 會依照所購買的授權有不同數量的限制。

    示意圖:

    SFA_Application_Scenario.gif

    安裝前需求

    1. Asterisk 可適用版本
      • Asterisk 1.4 versions    >= 1.4.25
      • Asterisk 1.6.0 versions >= 1.6.0.6
      • Asterisk 1.6.1 versions >= 1.6.1.5
      • Asterisk 1.6.2
      • Asterisk 1.8

         
    2. Skype 帳號必須是 Skype Business Account(SBA),現更名為 Skype Manager 所新增的帳號。(官方問與答第12項)
      SBA 申請 http://www.skype.com/intl/en/business/skype-manager

      SBA 是官方的免費服務,可以用一般Skype 帳號登入後設定公司名稱後,就可啟用SBA.
      此服務主要是用來協助企業用戶管理多個 Skype 帳號及 Skype Out 的儲值管理。 
       
    3. 購買軟體授權,官方網址 http://store.digium.com/productview...._code=1SFA0001
      • 在完成付款程序後,等待約幾個小時到一日的作業時間,官方會寄一封 email 內容包含一組註冊用的 Key 序號。
      • 交易完成後,隔日系統會將 Invoice 寄到所註冊的信箱,如果有需要請款的會需要它。

    安裝開始

    // 線上註冊授權資訊
    // 64-bit: http://downloads.digium.com/pub/regi...86-64/register

    Notes:

    • 執行 register 時,請確定對外網路是通的,且可正常存取外部的 443 (SSL) port。
    • 線上註冊時,會連接你的 Asterisk 主機與 Digium 的 License Server。
       
    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
    

    設定 Skype 模組

    // 編輯 /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 帳號

    設定 Elastix

    // 設定 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$

    FAQ

    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。
     

    Was this page helpful?
    標籤 (Edit tags)

    文件 1

    文件大小日期附件上傳者 
     SFA_Application_Scenario.gif
    Skype for Asterisk Application Scenario
    81.68 KB19:43, 24 Apr 2011alang動作
    查看第3個(總3個)評論: 查看所有
    http://blogs.elastix.org/en/2009/11/skype-for-elastix-asterisk/


    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
    發佈時間 07:35, 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, 應該如何處理?

    謝謝
    發佈時間 09:18, 5 Jun 2013 ()
    這個產品已經不能使用了,你應該考慮用其他的方案來替代。
    發佈時間 14:52, 5 Jun 2013 ()
    查看第3個(總3個)評論: 查看所有
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core