分類

Slideshow

Get the Flash Player to see the slideshow.

彙整

近期迴響

Asterisk 或 PBX 相關

Communication Softwares

HTML 資訊

Learning

Linux

Project Management

Who am I

技術相關

經常收看

誠意推介

金錢世界

Site search

 

九月 2008
« 八月   十月 »
 123456
78910111213
14151617181920
21222324252627
282930  

標籤

近期文章

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。所以這是很費時的步驟,用家要留意!

Comments

Comment from Gary
Time 2008 年 09 月 28 日 at 14:28:29

Hi,

真係好高興見到你設立個網頁有關於 VoIP 資訊內容,因為好少人會主動分享有關經驗。

近來,我小弟工作的公司都想自己建立一個SIP VoIP,現在小弟都在收集資料,其實仲有好多野唔明白,希望有機會可以同你研究一下啦,Thanks

Gary Chan
MSN & Email : garycht@hotmail.com

Comment from wudennis
Time 2008 年 09 月 28 日 at 19:13:06

謝謝支持

Write a comment