Asterisk 1.4 and Google Talk

Hi All,
I am on gentoo linux and trying to setup asterisk 1.4. Unfortunately, the release version seems to have a bug in gtalk_chan which causes the asterisk server to abort.

Now the good part. After I patched asterisk with two patches (asterisk-gtalk-nofreeafteralloca.patch.txt, asterisk-gtalk-null.patch.txt) given here, I was able to get asterisk get going with google talk.

Now the rant. After sometime the asterisk users is shown as offline in the googletalk client. Although the jabber user is still connected:

desktop*CLI>  jabber show connected
Jabber Users and their status:
       User: trum@gmail.com/Talk     - Connected
----top*CLI>
   Number of users: 1
desktop*CLI> quit

Any idea what is going on? There is a timeout field in jabber.conf, is it supposed to rectify this?

can you please tell me that if you got success in calling yr google talk client or not?

as i hav’nt been able to do that, i have done message passing among borh clients, but cannot make calling channel.

for your problem, check jabber.conf n check if theres a mistake in re-registering the service.

:smile:

Yes, I was able to successfully call between google-talk and asterisk. It works brilliantly. The only problem I am facing is that google talk is seeing the client go offline after some time as I mentioned.

hi i have been trying to integrate asterisk with gtalk would be if u can send me more details hw can we done u can drop a mail at click4nandu@gmail.com
Thanks in advance

@trumee

well i am facing the exact opposite problem as of yours. my google client never goes offline unless i close my asterisk server, but i am still not able to make calls.

its like whenever i call from asterisk, it shows that the googletalk client is ringing while i do get the rings at my googletalk client but when i pick up the call drops and googletalk has no active calls, but at astersik the call stays at ringing process.

i would appreiciate if you help me out with this problem.

btw about your problem did you check the things i asked u in my earlier post???

The google talk support seems to be too flaky. Anyways here are my config files:

Jabber.conf

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

[asterisk]                              ;;label
type=client                             ;;Client or Component connection
serverhost=talk.google.com                      ;;Route to server for example,
                                        ;;      talk.google.com
;username=asterisk@astjab.org/asterisk  ;;Username with optional roster.
username=me@gmail.com/Talk
secret=1234                          ;;Password
port=5222                               ;;Port to use defaults to 5222
usetls=yes                              ;;Use tls or not
usesasl=yes                             ;;Use sasl or not
;buddy=mogorman@astjab.org              ;;Manual addition of buddy to list.
buddy=someone@gmail.com               ;;Manual addition of buddy to list.
statusmessage="I can receive voice calls only and no messages. This is asterisk server"         ;;Have custom status message for
                                        ;;Asterisk.
;timeout=100                            ;;Timeout on the message stack.

gtalk.conf

[general]
context=google-in
allowguest=yes
bindaddr=192.168.2.128
;
[guest]
disallow=all
allow=ulaw
context=google-in

[asterisk]
username=me@gmail.com

disallow=all
allow=ulaw
;context=google-in
connection=asterisk

relevant extensions.conf

[google-in]
exten => s,1,NoOp( Call from Gtalk )
;exten => s,n,Set(CALLERID(name)="From Google Talk")
exten => s,n,Dial(SIP/1234,20,tr)

this is what i get when i try to call from google talk to asterisk client…
the call connects but i hear no voice and within a min the call drops… :cry:

[code] == Starting Gtalk/buddy-bb2e at google-in,myaccount@gmail.com,1 failed so falling back to exten ‘s’
– Executing [s@google-in:1] NoOp(“Gtalk/buddy-bb2e”, " Call from Gtalk ") in new stack
– Executing [s@google-in:2] Set(“Gtalk/buddy-bb2e”, “CALLERID(name)=“From Google Talk””) in new stack
– Executing [s@google-in:3] Dial(“Gtalk/buddy-bb2e”, “SIP/far”) in new stack
– Called far
– SIP/far-084d0930 is ringing
[Jan 17 17:43:25] NOTICE[4260]: chan_gtalk.c:1336 gtalk_indicate: Don’t know how to indicate condition ‘3’

SIP/far-084d0930 answered Gtalk/buddy-bb2e
[Jan 17 17:43:29] NOTICE[4260]: chan_gtalk.c:1336 gtalk_indicate: Don’t know how to indicate condition ‘-1’

[Jan 17 17:43:29] WARNING[4260]: rtp.c:3102 ast_rtp_bridge: Can’t find native functions for channel ‘Gtalk/buddy-bb2e’
– Native bridging Gtalk/buddy-bb2e and SIP/far-084d0930 ended
== Spawn extension (google-in, s, 3) exited non-zero on ‘Gtalk/buddy-bb2e’[/code]

and this happen when i call from asterik to my google talk client …
Googletalk client gets a call, n i accept the call at the googletalk client but the asterisk client keep playing ringing, sooo basically not even connecting at all here…
:cry:

[code] – Executing [200@TestCalls:1] Dial(“SIP/far-084cb3d8”, “gtalk/asterisk/buddy@gmail.com”) in new stack

-- Called asterisk/buddy@gmail.com

-- Gtalk/buddy@gmail.com-b30b is ringing

== Spawn extension (TestCalls, 200, 1) exited non-zero on ‘SIP/far-084cb3d8’[/code]

suggestions please, cause i am desprate to make this work… as its been months now that asterisk 1.4 is released and i am still stuck with Googletalk calling problems…
:cry::cry::cry::cry::cry::cry::cry::cry::cry::cry::cry::cry::cry::cry::cry::cry::cry::cry::cry:

oh yeah my configuration is exactly similar to your configuration which is actually the default way to configuration, besides theres no rocket science in configuration as far as i know ! :stuck_out_tongue:

plus i use the link you gave for changing the gtalk.c code as well…

but nothing seems to work… :cry:

Hi,

After a day of configuring a Debian 4, i was finally able to compile and install * 1.4.4. In adition i compiled an installed the iksemel1.2 libraries to support Gtalk, but when a start * i get the following message:

[color=red]
CLONIX:/usr/sbin# asterisk -r
asterisk: error while loading shared libraries: libiksemel.so.3: cannot open shared
object file: No such file or directory
CLONIX:/usr/sbin# [/color]

The libraries are located in:

[color=blue]/usr/src/libiksemel.so.3
/usr/src/libiksemel.so.3.0.0[/color]

Any suggestions to solve this…

People can reach me by IM at: dario010675@hotmail.com

Dario :confused:

It would appear that libiksemel did not get installed properly. This is more of a Debian question then an Asterisk question per se, so not sure how best to approach.

I avoid Debian as it takes Ubuntu to make it ultimately useful. :wink:

I setup the config files, but how would I connect my ATA to my Asterisk which can use gtalk? what user name and pass should I put in the ATA? the ones in jabber.conf or gtalk.conf?

Thanks

Ok I add a user in users.conf and my ATA connected to it, I put the the context to “google-in”

Muppetmaster,

I get the same error under Fedora 4 en Centos 4.3 but in those distrisbutions Asterisk don’t give this “fatal error” just a lot of warnings:

*CLI> [root@localhost sbin]# asterisk -c
Asterisk 1.4.4, Copyright © 1999 - 2007 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘show license’ for details.

[ Booting…
[ Reading Master Configuration ]
[ Initializing Custom Configuration Options ]
[Jun 26 18:50:05] NOTICE[23325]: cdr.c:1092 do_reload: CDR simple logging enabled.
[Jun 26 18:50:05] NOTICE[23325]: loader.c:792 load_modules: 149 modules will be loaded.
[color=red].[Jun 26 18:50:05] WARNING[23325]: loader.c:362 load_dynamic_module: Error loading module ‘res_jabber.so’: libiksemel.so.3: cannot open shared object file: No such file or directory
[Jun 26 18:50:05] WARNING[23325]: loader.c:362 load_dynamic_module: Error loading module ‘chan_gtalk.so’: libiksemel.so.3: cannot open shared object file: No such file or directory[/color]
…[Jun 26 18:50:05] WARNING[23325]: res_smdi.c:722 load_module: No SMDI interfaces are available to listen on, not starting SDMI listener.
[color=red].[Jun 26 18:50:05] WARNING[23325]: loader.c:375 load_dynamic_module: Module ‘libiksemel.so’ did not register itself during load
[Jun 26 18:50:05] WARNING[23325]: loader.c:362 load_dynamic_module: Error loading module ‘res_jabber.so’: libiksemel.so.3: cannot open shared object file: No such file or directory
[Jun 26 18:50:05] WARNING[23325]: loader.c:607 load_resource: Module ‘res_jabber.so’ could not be loaded.
[Jun 26 18:50:05] WARNING[23325]: loader.c:362 load_dynamic_module: Error loading module ‘chan_gtalk.so’: libiksemel.so.3: cannot open shared object file: No such file or directory
[Jun 26 18:50:05] WARNING[23325]: loader.c:607 load_resource: Module ‘chan_gtalk.so’ could not be loaded.
[/color]

For the iksemel 1.2.tar.gz, the install process is very simple:

./configure
make
make check
nake install

Done

I surrender to some * Guru who can help me in this thing, really don´t know what could be generating this error.

Dario

Muppetmaster,

Solved…

The libiksemel.so.3, libiksemel.so.3.0.0 are installed by default in /usr/local/lib and must be copied by command cp to /usr/lib

But now a get somes new errors…but in one less…

:smiley:

Dario

[quote=“Running Man”]Muppetmaster,

Solved…

The libiksemel.so.3, libiksemel.so.3.0.0 are installed by default in /usr/local/lib and must be copied by command cp to /usr/lib

But now a get somes new errors…but in one less…

:smiley:

Dario[/quote]

Strange. Did you run your Asterisk ‘configure’ command after installing iksemel, or before?

Hello everyone,
I had once same problem with loading libiksemel.

AFTER runing sudo make install it might be also necesary to run sudo ldconfig

Copying from /usr/local/lib to /usr/lib is not necesary as long as path to /usr/local/lib is present in /etc/ld.so.conf or in files in /etc/ld.so.conf.d/.

I followed your jabber/gtalk/extensions .conf files to configure my asterisk v1.4.17 on my Fonera running with an OpenWRT SVN firmware. I believe it is working now as shown below:

[code]root@192.168.1.2’s password:

BusyBox v1.8.2 (2008-02-12 15:28:32 EST) built-in shell (ash)
Enter ‘help’ for a list of built-in commands.


| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
|
_____|| |
||||___||| |____|
|
| W I R E L E S S F R E E D O M
KAMIKAZE (bleeding edge, r10141) -------------------

  • 10 oz Vodka Shake well with ice and strain
  • 10 oz Triple sec mixture into 10 shot glasses.
  • 10 oz lime juice Salute!

root@Fonerisk:~# rasterisk
Asterisk 1.4.17, Copyright (C) 1999 - 2007 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

Connected to Asterisk 1.4.17 currently running on Fonerisk (pid = 465)
Verbosity is at least 1
FoneriskCLI> jabber show connected
Jabber Users and their status:
User: xxxxx@gmail.com - Connected
----risk
CLI>
Number of users: 1
FoneriskCLI> gtalk reload
IT DOES WORK!
Fonerisk
CLI>[/code]

Hi, I have the same problem that the first post. My asterisk´s gtalk client goes offline after a few hours of running. I can call on both directions and works very well. Any help would be appreciated.
My setup: Slackware 12.0, asterisk 1.4.19, running on PIII 1 GHz, with ATA Grandstream HT-386, and ADSL nat’ed internet connection.
Thanks!