我无法使用星号和谷歌语音拨打或接听电话。我记得几年前使用过这个设置,所以我希望它应该可以工作,但只需要一个非常微妙的调整。
我可以看到我已连接:
*CLI> xmpp show connections
Jabber Users and their status:
[xx] [email protected] - Connected
----
Number of clients: 1
在详细模式下使用星号,这是我得到的输出:
*CLI> == Using SIP RTP CoS mark 5
> 0x7ff3b40073a0 -- Strict RTP learning after remote address set to: 192.168.1.15:4010
-- Executing [18008008000@xx-google-out:1] Dial("SIP/xx-00000000", "Motif/xx/[email protected],,r") in new stack
-- Called Motif/xx/[email protected]
-- Motif/[email protected] is proceeding passing it to SIP/xx-00000000
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'SIP/xx-00000000' status is 'CHANUNAVAIL'
== Using SIP RTP CoS mark 5
> 0x7ff3b4000910 -- Strict RTP learning after remote address set to: 192.168.1.15:4012
-- Executing [18008008000@xx-google-out:1] Dial("SIP/xx-00000001", "Motif/xx/[email protected],,r") in new stack
-- Called Motif/xx/[email protected]
-- Motif/[email protected] is proceeding passing it to SIP/xx-00000001
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'SIP/xx-00000001' status is 'CHANUNAVAIL'
> Saved useragent "CSipSimple_achill-22/r2457" for peer xx
extensions.conf:
[general]
static=yes
;writeprotect=no
; added from forum ...
writeprotect=yes
priorityjumping=no
autofallthrough=yes
[global]
;DIALOUT=9
;RINGTIME=30
[default]
include => xx-google-out
include => xx-google-in
;https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google
[xx-google-out]
;exten => _1XXXXXXXXXX,1,Dial(Motif/xx/${EXTEN}@voice.google.com,,r)
;exten => _XXXXXXXXXX,1,Dial(Motif/xx/${EXTEN}@voice.google.com,,r)
;exten => _+1XXXXXXXXXX,1,Dial(Motif/xx/${EXTEN}@voice.google.com,,r)
exten => _1XXXXXXXXXX,1,Dial(Motif/xx/+${EXTEN}@voice.google.com,,r)
[xx-google-in]
exten => s,1,NoOp()
same => n,Set(crazygooglecid=${CALLERID(name)})
same => n,Set(stripcrazysuffix=${CUT(crazygooglecid,@,1)})
same => n,Set(CALLERID(all)=${stripcrazysuffix})
same => n,Dial(SIP/xx,20,D(:1))
模块.conf
[modules]
autoload=yes
;#load => chan_motif.so
;#load => res_xmpp.so
主题.conf:
[xx]
context=xx-google-in
disallow=all
allow=ulaw,g722
connection=xx
rtp.conf:
[general]
; specify start and end port range so firewall rules are easier to write
rtpstart=10000
rtpend=20000
icesupport=yes
sip.conf:
[xx]
allow=all
allowguest=no
type=peer
secret=SECRETGOESHERE
host=dynamic
context=xx-google-out
xmpp.conf:
[general]
[xx]
type=client
serverhost=talk.google.com
[email protected]
secret=SECRETGOESHERE
priority=25
port=5222
usetls=yes
usesasl=yes
status=available
statusmessage=Asterisk Instance - Google Talk - VoIP
timeout=5