- 论坛徽章:
- 0
|
Asterisk 和 Skype 的整合測試(二)
chanskype 的 Version 是 1.2.11 (FC6)。而chanskype 和 voskey 一樣需要安裝 skype (Linux)。我的經驗是:不要用新的。因為新的版本有很多setting 需要調較,所以建議用版本 1.3。 chanskype 網站有一套 skype 1.3 Linux 版可以下載。
我現在系統的配置如下:
Fedora 8
Asterisk 1.4.21
VNC Server
Skype 1.3 (Linux)
Qt 3 Library
AMD Alton CPU
512 MB RAM
我嘗試過用CentOS 5.1 安裝但不成功。
另外,系統需要跑 VNC Server。因為每一個chanskype channel 需要一個 Skype account 來支持channel 的運作。這個Skype 會在 VNC 的 Session 裏跑(這正如和 voskey 一樣,voskey需要有一部電腦跑 Windows)。
首先,我們在 ftp://ftp.chanskype.com/download/packages/ 下載 chanskype 的 package。我系統是跑 Fedora 8,所以我會安裝chanskype-1.2.11-FC6.bin 這 package。
另外,我也同時在ftp://ftp.chanskype.com/download/required/中下載 Skype 1.3 for Linux skype-1.3.0.53-fc5.i586.rpm。
安裝 ChanSkype
準備好後可以開始安裝。在 shell 中跑 chanskype-1.2.11-FC6.bin
如無意外,shell 會顯示如下的資訊:
Verifying package integrity… OK!
ChanSkype files installed.
Now follow the rest of the instructions in the Installation Guide.
設定ChanSkype
安裝成功後你會在 /etc/asterisk 中看到 skype.conf。打開 skype.conf 然後修改 channels 來設定Asterisk 需要開 skype channels的數目。
如果Asterisk 需要接受來自 Skype channel 的來電,我們便需要在 extensions.conf 設定 dialplan context 給 Skype channel。例如:
context = fromskype
而我現在系統的 skype.conf 配置如下:
[general]
; general config options, default values are shown
; all but debug can go also in the device-specific sections.
debug=1 ; misc debug flags, default is 0
channels=1
context=fromskype ; for calls FROM Skype users
early_ringback=false ; set to “true” so callers to Skype will
; get a ringing tone straight away
設定 Linux user account 給 ChanSkype
每一個 ChanSkype channel 是需要設定一個 Skype 。我們需要為每一個 ChanSkype channel 設定一個 Linux user account。而且我們也需要為每一個 Linux user account 設定一個 VNC Server session,利用 VNC Server 的GUI session來開啟 Skype 和 ChanSkype 所需的其他子系統。因此,如果Asterisk 需要開 10個 ChanSkype channel,那麼我們需要設定10個 Linux user account ,10個 VNC Server Session,和預備10個 Skype 的 account。所以這是很費時的步驟,用家要留意! |
|