Não consigo fazer ou receber chamadas com asterisco e google voice. Lembro-me de ter usado essa configuração anos atrás, então espero que funcione, mas só preciso de um ajuste sutil.
Posso ver que estou conectado:
*CLI> xmpp show connections
Jabber Users and their status:
[xx] [email protected] - Connected
----
Number of clients: 1
Com asterisco no modo detalhado, esta é a saída que recebo:
*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))
módulos.conf
[modules]
autoload=yes
;#load => chan_motif.so
;#load => res_xmpp.so
motivo.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
O asterik para a integração do Google Voice vem caindo em desuso no Google gradualmente por um tempo. O XMPP de terceiros não é oficialmente suportado desde 2014-2015, e as implementações antigas restantes foram desativadas agora.
Do Fórum de Ajuda do Google Voice