Skype for Asterisk (SFA Digium)

從 $1

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

SFA 的優點:

  • 可安裝在 Asterisk 主機,不需要額外的機器及其他作業系統。
  • 不需要安裝 Skype 用戶端軟體。
  • 系統運作時,當沒有通話,是不會佔用網路頻寬,但是其他使用 API 方式開發的產品,雖然沒有通話,因為需要啟動 Skype 用戶端,而大家都知道,只要開啟 Skype 軟體,雖然沒有用它來通話,頻寬也會被其他用戶借用。
  • 與 Asterisk 連接不會有 DTMF 的問題,也就是可以作 IVR的整合。 
  • 可設定多組 Skype 帳號,透過 Inbound Route 可以設定不同的應用,但 concurrent channels 會依照所購買的授權有不同數量的限制。

安裝前需求

  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
     
  2. Skype 帳號必須是 Skype Business Account(SBA)
    SBA 申請 http://www.skype.com/intl/zh-Hant/bu...control-panel/

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

安裝開始

// 註冊授權資訊

cd /usr/src
wget http://downloads.digium.com/pub/register/x86-32/register
chmod 500 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: 
.....

  

// 安裝模組

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.tar.gz
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>

FAQ

執行 CLI> skype show users,總是出現 Logged Out?
解決:Asterisk 所設定的 Skype 帳號必須是從 Skype Business Panel(SBP) 新增的帳號,不能使用原先自己申請的帳號。
 

標籤:
 
註解 (0)
您必須 登入 才能發佈評論。