[Home]

Summary:ASTERISK-09728: [patch] Calls to Google Talk failing at 2nd call.
Reporter:Ferry van Aesch (ferry)Labels:
Date Opened:2007-06-21 12:00:16Date Closed:2007-06-27 12:14:26
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_gtalk
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) branch-1.4-bug_10029-1.diff
( 1) gtalkfailing.txt
( 2) withdebuginfo.txt
Description:After starting Asterisk, I can place exactly one call to Google Talk. After that, the calls fail. In the attached file you can see that on the 2nd call, the domain part (@gmail.com) of the user I'm trying to reach is not included in the communication with Google.

****** ADDITIONAL INFORMATION ******

jabber.conf:
[general]
debug=yes                              
autoprune=no                          
autoregister=no                        

[asterisk]                              
type=client                            
serverhost=talk.google.com                      
username=[MYASTERISKBOX]@gmail.com/Talk  
secret=*****                
port=5222                              
usetls=yes                              
usesasl=yes                            
buddy=[MYGOOGLECLIENT]@gmail.com        
statusmessage="Me pheun"              
timeout=100                            

gtalk.conf:
[general]
context=fromgtalk
allowguest=no                  

[gtalkdef]
username=[MYGOOGLECLIENT]@gmail.com
disallow=all
allow=ulaw
context=fromgtalk
connection=asterisk

System:
Debian 4.0, kernel 2.6.19.2
Comments:By: phsultan (phsultan) 2007-06-21 13:26:27

Can you run Asterisk in debug mode (-ddd) and give the same output back? Also, are the Asterisk server and the GoogleTalk client in the same LAN?

Thanks!

By: Ferry van Aesch (ferry) 2007-06-21 14:25:08

Hi,

This output was already with -ddd. Is there anything specific you're looking for that I can get out of asterisk? The only things I've filtered out there are SIP messages and dialplan execution messages (which is a mere exten => 5551,1,Dial(gtalk/asterisk/gtalkdef) ).

The Asterisk server and the client are indeed on the same LAN. (Asterisk on the edge with public and private IP space, Google Talk client on the private LAN.) I have a proxy server outside of the LAN as well, and I let the Google Talk client connect through that (just to get the client 'out of the LAN'), but the results are exactly the same.

Thanks!

By: phsultan (phsultan) 2007-06-22 03:03:02

Ok your Asterisk box has two IP adresses, which *might* be causing the problem as I don't really know how chan_gtalk can cope with that.

But still, we only have partial debug information here.

Please check your /etc/asterisk/logger.conf file and make sure your 'console' entry contains a 'debug' attribute, ex :
console => notice, warning, error, debug, verbose

By: Ferry van Aesch (ferry) 2007-06-26 06:55:02

Yep, my mistake. I've added two traces with debug info now. Both in the same file, the first call was okay, the second one failed.

Thanks!
Ferry

By: Ferry van Aesch (ferry) 2007-06-26 07:05:48

Maybe not very useful info, but calls the other way around (from the Google Talk client to Asterisk) keep on working fine.

By: phsultan (phsultan) 2007-06-26 09:39:56

Can you try this patch please? It looks like strsep modifies things we don't want to be modified.

Also, please confirm this patch does not harm calls the opposite way, just like you tested it before.

Thanks Ferry!

By: Ferry van Aesch (ferry) 2007-06-26 09:57:35

Hi,

Well, that seems to have done the trick. Calls work both ways, no failures. Let me know if you'd like to see another trace?

Thanks!
Ferry

By: Jason Parker (jparker) 2007-06-27 12:14:26

Fixed in svn branches 1.4 and trunk in revisions 72125 and 72134.

Note that chan_jingle in trunk did not have the same issue as chan_gtalk.