Dear friends,
I’m trying to integrate Asterisk with Google Talk.
I have CentOS 5.4 and Asterisk 1.6.2.6. All software mentioned here is 64-bit.
gtalk.conf :
[general]
context=from-gtalk
bindaddr=0.0.0.0
allowguest=yes
[guest]
disallow=all
allow=ilbc
allow=gsm
allow=ulaw
context=from-gtalk
[]
username=[]@gmail.com
disallow=all
allow=ilbc
allow=gsm
allow=ulaw
context=from-gtalk
connection=[*****]
jabber.conf :
[general]
debug=yes
autoprune=no
autoregister=yes
[]
type=client
serverhost=talk.google.com
username=[]@gmail.com/[]
secret=[]
priority=1
port=5222
usetls=yes
usesasl=yes
buddy=[*****]@gmail.com
status=available
statusmessage="Asterisk Server"
timeout=100
jingle.conf :
[general]
context=from-gtalk
bindaddr=0.0.0.0
allowguest=yes
[guest]
disallow=all
allow=ilbc
allow=gsm
allow=ulaw
context=from-gtalk
[]
username=[]@gmail.com
disallow=all
allow=ilbc
allow=gsm
allow=ulaw
context=from-gtalk
connection=[*****]
extensions.conf
[from-gtalk]
exten => s,1,Set(__FROM_DID=${EXTEN})
exten => s,n,Gosub(app-blacklist-check,s,1)
exten => s,n,ExecIf($[ “${CALLERID(name)}” = “” ] ?Set(CALLERID(name)=${CALLERID(num)}))
exten => s,n,Ringing()
exten => s,n,Set(__CALLINGPRES_SV=${CALLERPRES()})
exten => s,n,Set(CALLERPRES()=allowed_not_screened)
exten => s,n,Set(_RGPREFIX=GTALK: )
exten => s,n,Set(CALLERID(name)=${RGPREFIX}${CALLERID(name)})
exten => s,n(dest-ext),Goto(app-daynight,0,1)
Asterisk registers normaly at Gtalk network. When I put a call from another Gtalk account to my Asterisk box nothing happens, I saw at the logs the follow:
JABBER: lcvleo.com INCOMING: <ses:session type=“initiate” initiator="[]/gmail.B51AFEAB" id=“c1588181997” xmlns:ses=“http://www.google.com/session”><pho:description xmlns:pho=“http://www.google.com/session/phone”><pho:payload-type id=“103” name=“ISAC” clockrate=“16000”/><pho:payload-type id=“104” name=“ISACLC” bitrate=“40000” clockrate=“16000”/><pho:payload-type id=“99” name=“speex” bitrate=“22000” clockrate=“16000”/><pho:payload-type id=“97” name=“IPCMWB” bitrate=“80000” clockrate=“16000”/><pho:payload-type id=“102” name=“iLBC” bitrate=“13300” clockrate=“8000”/><pho:payload-type id=“98” name=“speex” bitrate=“11000” clockrate=“8000”/><pho:payload-type id=“3” name=“GSM” bitrate=“13000” clockrate=“8000”/><pho:payload-type id=“100” name=“EG711U” bitrate=“64000” clockrate=“8000”/><pho:payload-type id=“101” name=“EG711A” bitrate=“64000” clockrate=“8000”/><pho:payload-type id=“0” name="PCMU"
JABBER: [] INCOMING: bitrate=“64000” clockrate=“8000”/><pho:payload-type id=“8” name=“PCMA” bitrate=“64000” clockrate=“8000”/><pho:payload-type id=“106” name=“telephone-event” clockrate=“8000”/></pho:description></ses:session>
[Apr 5 16:15:07] DEBUG[32559] res_jabber.c: JABBER: Handling paktype IQ
JABBER: [] INCOMING: <ses:session type=“candidates” initiator="[]/gmail.B51AFEAB" id=“c1588181997” xmlns:ses=“http://www.google.com/session”><ses:candidate address=“192.168.5.5” port=“61681” name=“rtp” username=“8z3eBB5Wj8n0Nze2” password="[]" preference=“1” protocol=“udp” generation=“0” network=“2” type=“local”/></ses:session>
[Apr 5 16:15:08] DEBUG[32559] res_jabber.c: JABBER: Handling paktype IQ
JABBER: [] INCOMING: <ses:session type=“candidates” initiator="[]/gmail.B51AFEAB" id=“c1588181997” xmlns:ses=“http://www.google.com/session”><ses:candidate address=“189.60.207.46” port=“61682” name=“rtp” username=“Mx4sohclN56dxsHD” password="[]" preference=“0.9” protocol=“udp” generation=“0” network=“2” type=“stun”/></ses:session>
[Apr 5 16:15:08] DEBUG[32559] res_jabber.c: JABBER: Handling paktype IQ
JABBER: [] INCOMING: <ses:session type=“candidates” initiator="[]/gmail.B51AFEAB" id=“c1588181997” xmlns:ses=“http://www.google.com/session”><ses:candidate address=“192.168.5.5” port=“52789” name=“rtp” username=“dFmj8uTkiKaGbAQX” password="[]" preference=“1” protocol=“udp” generation=“1” network=“2” type=“local”/></ses:session>
[Apr 5 16:15:28] DEBUG[32559] res_jabber.c: JABBER: Handling paktype IQ
JABBER: [] INCOMING: <ses:session type=“candidates” initiator="[]/gmail.B51AFEAB" id=“c1588181997” xmlns:ses=“http://www.google.com/session”><ses:candidate address=“189.60.207.46” port=“52790” name=“rtp” username=“58dvIAA2hrhwbGxb” password="[]" preference=“0.9” protocol=“udp” generation=“1” network=“2” type=“stun”/></ses:session>
[Apr 5 16:15:28] DEBUG[32559] res_jabber.c: JABBER: Handling paktype IQ
I already try unload my firewall and open it totally and nothing happens.
I don’t know what more I can do…
Could anyone please help me?
Thank you so much!