Making Google Talk Work With Asterisk
Products based on proprietary technologies sometimes suck! That’s because you don’t have any choice but to subscribe to the service as the provider defines it. Most of the time, you cannot interface these with your own services or produts. In telephony, for instance, most proprietary systems cannot be easily interfaced with others. Skype, for example, cannot easily be interfaced with Asterisk without complicated set-ups (i.e., actually running Skype on one machine, or going through analog connections).
Some services that are based on open-source technologies (whether in full or loosely) will be easier to use, on the other hand. For example, Google Talk used to be a closed network, but then it opened itself to other Jabber networks (Google Talk is Jabber-based) so you can chat with other Jabber clients.
Since version 1.4, Asterisk has had support for Jingle, which is a protocol needed to “talk” with Google Talk. VoIP Info has a guide to setting up Asterisk for Google Talk here. This requires ikesmel, which can be downloaded here.
jabber.conf
This is where you set your gmail/gtalk account info and will register you with the google server.
[general]
debug=yes
autoprune=no
autoregister=no[gtalk_account]
type=client
serverhost=talk.google.com
username=username@gmail.com/Talk
secret=*****
port=5222
usetls=yes
usesasl=yes
buddy=buddyusername@gmail.com
statusmessage=”This is an Asterisk server”
timeout=100
gtalk.conf
This is where the settings for the actual calls are made:
[general]
context=google-in
allowguest=yes;
[guest]
disallow=all
allow=ulaw
context=google-in[buddy]
username=buddyusername@gmail.comdisallow=all
allow=ulaw
context=google-in
connection=gtalk_account
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/my_sip_phones)
…[google-out]
exten => 200,1,Dial(gtalk/gtalk_account/buddyusername@gmail.com)
It is suggested that you create a new Gmail/Google account that Asterisk will use.
Don't miss a post! Subscribe to the RSS feed or by email today!
January 31st, 2007 at 5:32 pm
Any examples of ways in which this capability could be used would be fantastic.
Thanks for the guide. I am keen to try ASAP.
February 15th, 2007 at 3:40 pm
I’ve installed Asterisk 1.4 and set up the gtalk configuration. I think it’s set up correctly but I’m having problems. If I call from gtalk to my ip phone, or from my ip phone to gtalk I see the same behaviour. What happens is that when I make the call it does ring on the other end. Then when I answer it I still hear the ringing tone on the originating system. When I cancel the call on the originating system the call ends on the target.
Here’s an example of the output on the CLI:
[Feb 15 12:50:18] NOTICE[18494]: chan_gtalk.c:614 gtalk_is_answered: Whoa, didn’t find call!
== Spawn extension (tutorial, 200, 1) exited non-zero on ‘SIP/myPhone-09310ae0′
March 9th, 2007 at 9:34 am
Hi Stan,
Did you manage to find what was causing this error?
Ian
March 12th, 2007 at 9:19 pm
Same here. Is it working Stan? Let us know so we can learn and join you!
June 22nd, 2007 at 7:01 pm
I have it configured, but i didn’t have sound in any way…
Any idea ?
July 10th, 2007 at 4:20 pm
hi sir
i am new in asterisk i configured all the file for gtalk calling to & from asterisk pbx with me & my friend gtalk id but when i try to call each other its not working in my astreisk, even it not showed in console when we try to call.so is ther any need to load ikesmile on my asterisk?
or what is the problem tell me
regards
amit
August 17th, 2007 at 2:58 am
Hey guys, have you solved your problem? I need help in the same direction.
May 3rd, 2008 at 8:39 pm
connected gtalk to Asterisk Asterisk 1.4.18-1. when we call from another gtalk client the audio reaches sip client, but audio from sip client is not reaching gtalk client.
the asterisk server is behing 2 nat server.
ie isp uses a nat and our company uses ccproxy.. However windows gtalk client from internal network can easily speak to outside gtalk clinet. no issues with audio.
followed the step from http://www.voip-info.org/wiki/view/Asterisk+Google+Talk added in
/etc/asterisk/gtalk.conf
bindaddr=192.168.27.208 in general section.
Any suggestions are highly appreciated.
Thanks
Jay
August 8th, 2008 at 6:32 am
Hi All,
I have done all the configuration as mentioned above but still facing some issue.
When I run the “jabber test” command I am getting the following error
res_jabber.c:2223 aji_initialize: JABBER ERROR: No Connection
> JABBER: Connecting.
Can anyone help me out on this ?
Thanks
Rusty