本帖最後由 角色 於 2011-9-28 01:51 編輯
因为有了Asterisk 1.8,那么就可以安装多于一个GV account,方便其他member使用,所以起这幅帖子方便大家集中讨论的安装办法。
下面有关于这方面的安装:
http://forums.digium.com/viewtopic.php?f=1&t=76250
=============== 解决方案 =========================
jabber.conf- [general]
- autoregister=yes
- [trunk-gv-leo] ; For GV-outbound trunk
- type=client
- serverhost=talk.google.com
- username=leo@gmail.com/Talk
- secret=password of leo gv account
- port=5222
- usetls=yes
- usesasl=yes
- statusmessage="I am an Asterisk Server"
- timeout=100
- [trunk-gv-polly] ; For GV-outboud trunk
- type=client
- serverhost=talk.google.com
- username=polly@gmail.com/Talk
- secret=passowrd of polly gv adcount
- port=5222
- usetls=yes
- usesasl=yes
- statusmessage="I am an Asterisk Server"
- timeout=100
- ~
複製代碼 gtalk.conf- [general]
- context=local
- allowguests=yes
- bindaddr=0.0.0.0
- externip=xxx.xxx.xxx.xxx
- allowguest=no
- [guest]
- disallow=all
- allow=ulaw
- context=from-GV
- ;connection=asterisk
- ;connection=trunk-GV-leo
複製代碼 sip.confusers.conf- [2001]
- typp=friend
- secret=2001
- hassip=yes
- qualify=yes
- nat=yes
- host=dynamic
- canreinvit=no
- context=internal
- [2002]
- typp=friend
- secret=2002
- hassip=yes
- qualify=yes
- nat=yes
- host=dynamic
- canreinvit=no
- context=internal
複製代碼 extensions.conf- [trunk-gv]
- exten => _1011XXXXXXXXXX,1,Dial(gtalk/trunk-gv-leo/+${EXTEN:3}@voice.google.com)
- exten => _1021XXXXXXXXXX,1,Dial(gtalk/trunk-gv-polly/+${EXTEN:3}@voice.google.com)
- [internal]
- include => trunk-gv
- exten => 2001,1,Dial(SIP/2001,,r)
- exten => 2002,1,Dial(SIP/2002,,r)
- ; * This extension is where any external SIP calls should route to
- [from-GV]
- exten => leo@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):1:10})
- exten => leo@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})
- exten => leo@gmail.com,n,Answer()
- exten => leo@gmail.com,n,Wait(2)
- exten => leo@gmail.com,n,SendDTMF(1)
- exten => leo@gmail.com,n,Dial(SIP/2001,,)
- exten => polly@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):1:10})
- exten => polly@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})
- exten => polly@gmail.com,n,Answer()
- exten => polly@gmail.com,n,Wait(2)
- exten => polly@gmail.com,n,SendDTMF(1)
- exten => polly@gmail.com,n,Dial(SIP/2002,,)
複製代碼 角色 |