[asterisk-users] Gtalk Asterisk integration

srinivas Antarvedi srinivas.antarvedi at gmail.com
Sun Nov 29 23:32:49 CST 2009


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]
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'





###############
asterisk cli out put
###############

> jabber show connected

  User: XXXXX at gmail.com     - Connected

>jabber show buddies

                       YYYYY at gmail.com
localhost*CLI>  Resource: Talk.v104C77D0BCE
localhost*CLI>          node: http://www.google.com/xmpp/client/caps
localhost*CLI>          version: 1.0.0.104
localhost*CLI>          Jingle capable: yes


> gtalk show channels
Channel                         Jabber ID                       Resource
    Read  Write
0 active gtalk channels


i am getting error "no gtalk capable clients to talk to"

i tried with both asterisk 1.4.25 version and asterisk 1.6.0 but no
difference

anybody can help me out finding a forward move on this???





Thanks in advance
srinivas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091130/cf223803/attachment.htm 


More information about the asterisk-users mailing list