a9 发帖数: 21638 | 1 首先asterisk 1.8在dockstar上运行不正常
gtalk+asterisk 1.6在dockstar上也跑的不太正常。
安装asterisk.首先安装
iksemel
wget http://iksemel.googlecode.com/files/iksemel-1.4.tar.gz
解压 tar -zxvf iksemel-1.4.tar.gz并进入这个目录
配置 ./configure --prefix=/usr (不装在usr下好像会有问题)
编译安装 make & make install
下载编译asterisk 1.8
./configure --use-ssl=/usr/lib 注意看usr/lib下有没有libssl*.so
make menuselect 选上channels->gtalk,resources->res_jabber
编译安装 make & make install
配置
/etc/asterisk/jabber.conf
[general]
debug=no
autoprune=no
autoregister=no
[gtalk_account]
type=client
serverhost=talk.google.com
username=gmail账号/GTalk
secret=google密码
port=5222
usetls=yes ; TLS is required by talk.google.com, you'll get a 'socket read e
rror' without
usesasl=yes
statusmessage="This is an Asterisk server"
timeout=100
gtalk.conf
[general]
context=google-in
allowguest=yes
bindaddr=本机ip地址,如192.168.1.17
stunaddr=stun01.sipphone.com ;stun服务器地址
;
[guest]
disallow=all
allow=ulaw
context=google-in
connection=gtalk_account
extensions.conf
[google-in]
exten => s,1,NoOp(CALL FROM ${CALLERID(name)} ,${CALLERID(num)} THROUGH goog
le voice)
exten => s,n,Answer()
exten => s,n,Dial(SIP/8001,30,tT);您的分机号
exten => h,1,Hangup()
然后启动asterisk即可 |