免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4794 | 回复: 2
打印 上一主题 下一主题

Asterisk 和 Skype 的整合測試 (zf) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-05 16:02 |只看该作者 |倒序浏览
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。所以這是很費時的步驟,用家要留意!

论坛徽章:
0
2 [报告]
发表于 2009-05-24 09:29 |只看该作者
不错不错,不知道会会被SKYPE封杀哦

论坛徽章:
0
3 [报告]
发表于 2009-05-24 12:09 |只看该作者
不会,skype早就跟digium合作开发原生的skype协议支持。只不过一直都没拿出来。转眼一年又快过去啦。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP