Sei sulla pagina 1di 3

GTALK Asterisk integration

-------------------------------
gtalk to server calls working:, from asterisk to gtalk it doesnt work.
--------------------------------------------------------------------------------
--
Hello users,
I am trying to integrate asterisk and gtalk.
my configuration is as follows
OS:centos
asterisk-1.6.0
asterisk-addons-1.6.0
dahdi-linux-2.2
dahdi-tools-2.2
libpri-1.4 share
iksemel-1.2
#/etc/asterisk/jabber.conf
[general]
debug=yes
autoprune=no
autoregister=no
[google]
type=client
serverhost=talk.google.com
username=XXXX at gmail.com
secret=xxxxx
port=5222
usetls=yes
usesasl=yes
statusmessage="Invox Google Talk"
timeout=100

# /etc/asterisk/gtalk.conf[general]
context=google-in
bindaddr=192.168.1.74
allowguest=yes
[guest]
;disallow=all
allow=ulaw
context=google-in
[test]

----------------------------------------------------------
Asterisk configuration:CHECK THE BELOW LINK:
--------------------------------------------

http://www.voip-info.org/wiki/view/Asterisk+config+files

username=YYYY at gmail.com
disallow=all
allow=ulaw
context=google-in
connection=google
# /etc/asterisk/extensions.conf
[google-in]
;Incoming
exten => s,1,NoOp(call from Google Talk)
exten => s,n,Set(CALLERID(name)="From Google Talk")
exten => s,n,Dial(SIP/1000,20,r)
exten => s,n,Hangup()
;Outgoing
exten => 100,1,JabberStatus(google,YYYY at gmail.com,STATUS)
exten => 100,n,NoOp(Jabber Status=${STATUS})
exten => 100,n,Dial(Gtalk/google/invoxgtalk at gmail.com/Talk)
exten => 100,n,Hangup()

# /etc/asterisk/rtp.conf
rtpstart=1650
rtpend=4560

ports opened on the router


tcp 443 -incoming, outgoing
tcp 5222-incoming,outgoing
udp- all open incoming, outgoing

-> i am able to call from my external gtalk client to the server configured
user
# this case is working fine
Executing [s at google-in:1] NoOp("Gtalk/YYYYY-49af", "call from Google
Talk") in new stack
Executing [s at google-in:2] Set("Gtalk/YYYYY-49af", "CALLERID(name)="From
Google Talk"") in new stack
Executing [s at google-in:3] Dial("Gtalk/YYYYY-49af", "SIP/1000,20,r") in new
stack
Using SIP RTP CoS mark 5
-- Called 1000

-> when i try to call from asterisk to the external client


# this case is not working and throwing following error
Executing [100 at google-in:1] JabberStatus("SIP/1000-0000000e", "google,
YYYYY at gmail.com,STATUS") in new stack
Executing [100 at google-in:2] NoOp("SIP/1000-0000000e", "Jabber
Status=1") in new stack
Executing [100 at google-in:3] Dial("SIP/1000-0000000e", "Gtalk/google/
YYYYY at gmail.com/Talk") in new stack
[Nov 30 16:22:25] ERROR[16255]: chan_gtalk.c:932 gtalk_alloc: no gtalk
capable clients to talk to.
[Nov 30 16:22:25] WARNING[16255]: app_dial.c:1518 dial_exec_full:
Unable to create channel of type 'Gtalk' (cause 0 - Unknown)
Everyone is busy/congested at this time (1:0/0/1)
Executing [100 at google-in:4] Hangup("SIP/1000-0000000e", "") in new
stack
Spawn extension (google-in, 100, 4) exited non-zero on
'SIP/1000-0000000e'

Potrebbero piacerti anche