Summary: | ASTERISK-13130: no gtalk capable clients to talk to & Asterisk needs to be restarted after adding jabber buddies | ||
Reporter: | Max A Glucksmann (maxgo) | Labels: | |
Date Opened: | 2008-11-26 15:29:13.000-0600 | Date Closed: | 2011-06-07 14:02:58 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_gtalk |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Hello, this thread actually describes two issues: 1) When calling a GTalk buddy from gtalk.conf, the following error is displayed: no gtalk capable clients to talk Then, we obtain a CHANUNAVAIL status. 2) The only way of being able to dial different google users, is creating a separate jabber.conf entry for every single one. Additionally, this works without the gtalk entry, only entering it in jabber.conf is needed to make it function properly. Additionally, it is not enough reloading jabber to be able to call newly entered connections in jabber.conf; Asterisk needs to be restarted. ****** ADDITIONAL INFORMATION ****** Error obtained if we enter only the buddy in gtalk.conf: -- Executing Dial("SIP/1011001-b7d14668", "Gtalk/asterisk2/glucksmann.max@gmail.com") [Nov 26 16:22:29] ERROR[14713]: chan_gtalk.c:1646 gtalk_request: No XMPP client to talk to, us (partial JID) : asterisk2 [Nov 26 16:22:29] WARNING[14713]: app_dial.c:1242 dial_exec_full: Unable to create channel of type 'Gtalk' (cause 0 - Unknown) == Everyone is busy/congested at this time (1:0/0/1) == Auto fallthrough, channel 'SIP/1011001-b7d14668' status is 'CHANUNAVAIL' ------------------------------------------ GTalk Entry: [buddy2] context=google username=glucksmann.max@gmail.com disallow=all allow=ulaw connection=asterisk2 ------------------------------------------ Doesn't work unless: 1) Adding in jabber.conf every single buddy: [asterisk2] type=client serverhost=talk.google.com username=comtel.pbx@gmail.com secret=xxxxxx port=5222 usetls=yes usesasl=yes buddy=glucksmann.max@gmail.com statusmessage="This is Comtel Networks PBX Server" timeout=100 ------------------------------------------ 2) Restarting Asterisk: -- Executing Dial("SIP/1011001-098880d0", "Gtalk/asterisk2/glucksmann.max@gmail.com") -- Called asterisk2/glucksmann.max@gmail.com -- Gtalk/glucksmann.max@gmail.com-520d is ringing -- Gtalk/glucksmann.max@gmail.com-520d answered SIP/1011001-098880d0 [Nov 26 16:26:19] NOTICE[14906]: chan_gtalk.c:1480 gtalk_indicate: Don't know how to indicate condition '20' | ||
Comments: | By: Max A Glucksmann (maxgo) 2008-11-26 15:40:10.000-0600 BTW, it'll be great to have Realtime GTalk/jabber buddies and that Asterisk didn't have to restart to get them... Thanks! By: John Covert (jcovert) 2008-11-29 22:56:09.000-0600 In 1.6.0.1 you don't have to add the buddies to Asterisk at all, in either jabber.conf or gtalk.conf. All that has to happen is for the user with the Windoze GTalk client to add the GTalk user that is configured in jabber.conf. No restarts required. The behaviour described here for 1.4 would have been a complete show-stopper for my client's intended use of chan_gtalk. (I also uncommented the [guest] section in gtalk.conf, and sent it to a context of my choice.) By: phsultan (phsultan) 2008-12-11 12:57:01.000-0600 maxgo: did you try to fix your issue following jcovert's advice? By: Max A Glucksmann (maxgo) 2009-01-09 16:56:17.000-0600 Hello phsultan, I followed jcovert's advice and installed Asterisk 1.6-current (1.6.0.3) since 1.6.0.1 wasn't available anymore in the download folder at Digium at: http://downloads.digium.com/pub/asterisk/ Asterisk Version: Connected to Asterisk 1.6.0.3 currently running on host5 (pid = 18110) Verbosity is at least 3 host5*CLI> I left only the following entries in gtalk.conf: [general] context=google allowguest=yes bindaddr=216.x.x.x [guest] context=google disallow=all allow=ulaw allow=g729 connection=asterisk And in jabber.conf: [general] debug=no autoprune=no autoregister=yes [asterisk] type=client serverhost=talk.google.com username=comtel.pbx@gmail.com secret=xxxx port=5222 usetls=yes usesasl=yes buddy=max.glucksmann@gmail.com statusmessage="This is Comtel Networks PBX Server" timeout=100 The issues regarding the need to restart asterisk or asterisk crashing are gone now. Thanks... but, there is one issue with some phones not registering; I tried also with 1.6.1-beta4 but the registration problem remained and then the audio quality was bad (scrambled) in gtalk, so I had to go back to 1.4.22. All issues are gone now after I went back to 1.4.22 and left the entries mentioned above only. Finally, everything is working nicely with v1.4.22. I appreciate very much your advice either way (to both of you). New tickets could be opened for 1.6 though... By: phsultan (phsultan) 2009-02-12 08:33:04.000-0600 maxgo: thanks for your feedback! |