[asterisk-bugs] [Asterisk 0012066]: Gtalk call fails unless restarts (Maybe?! reopening issue 10707)

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Feb 25 14:49:40 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12066 
====================================================================== 
Reported By:                ffadaie
Assigned To:                phsultan
====================================================================== 
Project:                    Asterisk
Issue ID:                   12066
Category:                   Channels/chan_gtalk
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.18 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             02-25-2008 14:43 CST
Last Modified:              02-25-2008 14:49 CST
====================================================================== 
Summary:                    Gtalk call fails unless restarts (Maybe?! reopening
issue 10707)
Description: 
I am having the exact same issue as described in 10707. It seems that this
is not completely resolved.
Here is a bit more details:
Asterisk is logged in as abc at gmail.com. I add abc at gmail.com as new buddy
to my own gtalk account xyz at gmail.com. As soon as I add it, Asterisk
receives presence information and supposedly add it to its buddy. However,
when I try to call xyz at gmail.com from my Asterisk, the call does not go
through!
Now, if I restart Asterisk, everything will be fine. In other words,
whenever somebody adds Asterisk user (abc at gmail.com) as buddy, Asterisk
must be restarted otherwise no calls can be made from Asterisk to that
person.
Here is the console log when user xyz at gmail.com adds abc at gmail.com as
buddy:

JABBER: asterisk INCOMING: <presence type="subscribe" to="abc at gmail.com"
from="xyz at gmail.com"/>

JABBER: asterisk OUTGOING: <presence type='subscribed' to='xyz at gmail.com'
from='abc at gmail.com/TalkFEC6CAF7'><status>Asterisk has approved
subscription</status></presence>
localhost*CLI>
JABBER: asterisk INCOMING: <iq to="abc at gmail.com/TalkFEC6CAF7"
id="3F692613" type="set"><query xmlns="jabber:iq:roster"><item
jid="xyz at gmail.com" subscription="from" ask="subscribe"/></query></iq>
localhost*CLI>
JABBER: asterisk INCOMING: <presence type="subscribed"
from="xyz at gmail.com" to="abc at gmail.com"/>
localhost*CLI>
JABBER: asterisk INCOMING: <iq to="abc at gmail.com/TalkFEC6CAF7"
id="3F69262A" type="set"><query xmlns="jabber:iq:roster"><item
jid="xyz at gmail.com" subscription="both"/></query></iq>
localhost*CLI>
JABBER: asterisk INCOMING: <presence
from="xyz at gmail.com/Talk.v104D279DA8E"
to="abc at gmail.com"><status/><priority>24</priority><c
node="http://www.google.com/xmpp/client/caps" ver="1.0.0.104" ext="share-v1
voice-v1" xmlns="http://jabber.org/protocol/caps"/><x
stamp="20080225T20:27:28" xmlns="jabber:x:delay"/><x
xmlns="vcard-temp:x:update"><photo/></x></presence>
[Feb 25 15:18:14] NOTICE[18292]: res_jabber.c:1179 aji_handle_presence:
Got presence packet from xyz at gmail.com, someone not in our roster!!!!
localhost*CLI>

When I try to call xyz at gmail.com at this moment I get the error that there
is no gtalk capable client to talk to! 
The error goes away as soon as I restart Asterisk!
====================================================================== 

---------------------------------------------------------------------- 
 ffadaie - 02-25-08 14:49  
---------------------------------------------------------------------- 
jabber.conf

[general]
debug=yes                               ;;Turn on debugging by default.
autoprune=no                            ;;Auto remove users from buddy
list.
autoregister=no/yes[makes no difference]                 ;;Auto register
users from buddy list.

[asterisk]                              ;;label
type=client                             ;;Client or Component connection
serverhost=talk.google.com                      ;;Route to server for
example,
username=abc at gmail.com/Talk       ;;Username with optional roster.
secret=XXXXX                              ;;Password
port=5222                               ;;Port to use defaults to 5222
usetls=yes                              ;;Use tls or not
usesasl=yes                             ;;Use sasl or not
statusmessage="YYY"          ;;Have custom status message for
timeout=100                             ;;Timeout on the message stack.

gtalk.conf

[general]
context=gg              ;;Context to dump call into
allowguest=yes                  ;;Allow calls from people not in
bindaddr=[my_internal_ip]
externip=[my_external_ip]                         ;;list of peers
;
[guest]                 ;;special account for options on guest account
disallow=all
allow=ulaw
context=gg 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-25-08 14:49  ffadaie        Note Added: 0082895                          
======================================================================




More information about the asterisk-bugs mailing list