[asterisk-users] RE: Getting Asterisk to work with GoogleTalk

Alvin Austin aan at crlogic.com
Thu Oct 5 19:01:59 MST 2006


Bromont - wrote:
 > It should work fine with 1.4Beta2
 >
 > I use gtalk.conf instead of jingle.conf and this is what I would 
change in configurations (shown with the arrows):
 >
 > jabber.conf:
 > [general]
 > ;debug=yes
 > ;autoprune=yes
 > ;autoregister=yes
 >
 > [googletalk]
 > type=client
 > serverhost=talk.google.com
 > username=ast123 at gmail.com/Talk   <------
 > secret=gtpassxxxx
 > port=5222
 > usetls=yes
 > usesasl=yes
 > buddy=xyz456 at gmail.com
 > statusmessage="Voice Calls Only"
 > timeout=100
 >
 > gtalk.conf:
 > [general]
 > context=from-gtalk
 > allowguest=yes
 >
 > [guest]
 > disallow=all
 > allow=ulaw
 > context=from-gtalk
 >
 > [google]
 > username=xyz456 at gmail.com    <------
 > disallow=all
 > allow=ulaw
 > context=from-gtalk
 > connection=googletalk      <------
 >
 > extensions.conf:
 > ;outgoing to GoogleTalk
 > [to-gtalk]
 > exten => 190,1,NoOp("Calling GoogleTalk user xyz456 at gmail.com")
 > exten => 190,n,Dial(gtalk/googletalk/xyz456 at gmail.com)    <------



Thanks for the note.  After switching to using gtalk.conf instead of 
jingle.conf, and making the adjustments above, I find that the svn 
version of Asterisk dies with a core dump and backtrace when the XP 
Google Talk client tries to call it:

JABBER: googletalk INCOMING: <iq to="ast123 at gmail.com/Talk6DD03373" 
type="set" id="65" from="xyz456 at gmail.com/Talk.v96D358DB9D"><session 
type="initiate" id="2561394071" 
initiator="xyz456 at gmail.com/Talk.v96D358DB9D" 
xmlns="http://www.google.com/session"><description xml:lang="en" 
xmlns="http://www.google.com/session/phone"><payload-type id="103" 
name="ISAC" clockrate="16000"/><payload-type id="97" name="IPCMWB" 
clockrate="16000" bitrate="80000"/><payload-type id="99" name="speex" 
clockrate="16000" bitrate="22000"/><payload-type id="4" name="G723" 
clockrate="8000" bitrate="6300"/><payload-type id="98" name="speex" 
clockrate="8000" bitrate="11000"/><payload-type id="100" name="EG711U" 
clockrate="8000" bitrate="64000"/><payload-type id="101" name="EG711A" 
clockrate="8000" bitrate="64000"/><payload-type id="0" name="PCMU" 
clockrate="8000" bitrate="64000"/><payload-type id="8" name="PCMA" 
clockrate="8000" bitrate="64000"/><payload-type id="13" name="CN" 
clockrate="8000"/><payload-type id="102" name="iLBC" clockrate="

JABBER: googletalk INCOMING: 8000" bitrate="13300"/><payload-type 
id="106" name="telephone-event" 
clockrate="8000"/></description><transport 
xmlns="http://www.google.com/transport/p2p"/></session></iq>
*** glibc detected *** asterisk: munmap_chunk(): invalid pointer: 
0xb795cc32 ***
======= Backtrace: =========
/lib/i686/libc.so.6(__libc_free+0x18a)[0xb7d4903a]
/usr/lib/asterisk/modules/chan_gtalk.so[0xb78f7242]
/usr/lib/asterisk/modules/chan_gtalk.so[0xb78f7816]
/usr/lib/libiksemel.so.3(iks_filter_packet+0x129)[0xb7a587e9]
/usr/lib/asterisk/modules/res_jabber.so[0xb7a794e6]
/usr/lib/libiksemel.so.3[0xb7a569c4]
/usr/lib/libiksemel.so.3(iks_parse+0x5a0)[0xb7a54a40]
/usr/lib/libiksemel.so.3(iks_recv+0x98)[0xb7a56368]
/usr/lib/asterisk/modules/res_jabber.so[0xb7a75110]
asterisk[0x80e924b]
/lib/i686/libpthread.so.0[0xb7f41540]
/lib/i686/libc.so.6(__clone+0x5e)[0xb7dae55e]
======= Memory map: ========
08048000-08137000 r-xp 00000000 16:02 585805     /usr/sbin/asterisk
08137000-08143000 rwxp 000ef000 16:02 585805     /usr/sbin/asterisk
08143000-0822b000 rwxp 08143000 00:00 0          [heap]
b6d8e000-b6d90000 r-xp 00000000 16:02 1324089 
/usr/lib/asterisk/modules/func_vmcount.so
b6d90000-b6d91000 rwxp 00001000 16:02 1324089 
/usr/lib/asterisk/modules/func_vmcount.so
b6d91000-b6d92000 r-xp 00000000 16:02 1324088 
/usr/lib/asterisk/modules/func_uri.so
b6d92000-b6d93000 rwxp 00001000 16:02 1324088 
/usr/lib/asterisk/modules/func_uri.so
b6d93000-b6d95000 r-xp 00000000 16:02 1324087 
/usr/lib/asterisk/modules/func_timeout.so
b6d95000-b6d96000 rwxp 00001000 16:02 1324087 
/usr/lib/asterisk/modules/func_timeout.so
b6d96000-b6d9a000 r-xp 00000000 16:02 1324086 
/usr/lib/asterisk/modules/func_strings.so
b6d9a000-b6d9b000 rwxp 00003000 16:02 1324086 
/usr/lib/asterisk/modules/func_strings.so
b6d9b000-b6d9c000 r-xp 00000000 16:02 1324085 
/usr/lib/asterisk/modules/func_sha1.so
b6d9c000-b6d9d000 rwxp 00000000 16:02 1324085 
/usr/lib/asterisk/modules/func_sha1.so
b6d9d000-b6d9f000 r-xp 00000000 16:02 1324084 
/usr/lib/asterisk/modules/func_realtime.so
b6d9f000-b6da0000 rwxp 00001000 16:02 1324084 
/usr/lib/asterisk/modules/func_realtime.so
b6da0000-b6da2000 r-xp 00000000 16:02 1324083 
/usr/lib/asterisk/modules/func_rand.so
b6da2000-b6da3000 rwxp 00001000 16:02 1324083 
/usr/lib/asterisk/modules/func_rand.so
b6da3000-b6da4000 r-xp 00000000 16:02 1324082 
/usr/lib/asterisk/modules/func_md5.so
b6da4000-b6da5000 rwxp 00000000 16:02 1324082 
/usr/lib/asterisk/modules/func_md5.so
b6da5000-b6da7000 r-xp 00000000 16:02 1324081 
/usr/lib/asterisk/modules/func_math.so
b6da7000-b6da8000 rwxp 00001000 16:02 1324081 
/usr/lib/asterisk/modules/func_math.so
b6da8000-b6daa000 r-xp 00000000 16:02 1324080 
/usr/lib/asterisk/modules/func_logic.so
b6daa000-b6dab000 rwxp 00001000 16:02 1324080 
/usr/lib/asterisk/modules/func_logic.so
b6dab000-b6dad000 r-xp 00000000 16:02 1324079 
/usr/lib/asterisk/modules/func_groupcount.so
b6dad000-b6dae000 rwxp 00001000Aborted (core dumped)

I'll try again with 1.4beta2...

If anyone else has a hint too, feel free to jump right in! :-)

Thanks,
Alvin



More information about the asterisk-users mailing list