Alvin Austin
2006-Oct-05 10:16 UTC
[asterisk-users] Getting Asterisk to work with GoogleTalk
Hello all,
We're trying to get the Asterisk to GoogleTalk functionality working,
using the latest asterisk svn code (we've also tried with 1.4beta2).
SVN Asterisk's make update displays:
Updated to revision 59.
Updated to revision 44477.
We've tried to follow the recipe (without success) in:
http://www.voip-info.org/wiki/view/Asterisk+Speaks+with+Google+Talk
When Asterisk starts up, the WindowsXP GoogleTalk user (xyz456) sees the
asterisk server (ast123) appearance. When it tries to call the asterisk
server, it hears ringing, but Asterisk does not answer (there is no
indication in the CLI that it has received a call, except for the
messages below).
Asterisk (run as: asterisk -cfvvvvvv) shows the following messages
several times:
JABBER: googletalk INCOMING: <iq
to="ast123@gmail.com/asterisk709EC6B7"
from="xyz456@gmail.com/gmail.F1D1B5C9" id="aaaac"
type="result">
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="client" type="pc"/>
<feature var="http://jabber.org/protocol/disco#info"/>
</query></iq>
-- JABBER: I Dont have an IQ!!!
JABBER: googletalk INCOMING: <presence
from="xyz456@gmail.com/gmail.F1D1B5C9"
to="ast123@gmail.com"><show>away</show><priority>0</priority>
<caps:c node="http://mail.google.com/xmpp/client/caps"
ver="1.1"
xmlns:caps="http://jabber.org/protocol/caps"/>
<status/><x
xmlns="vcard-temp:x:update"><photo/></x></presence>
-- JABBER: I am available ^_* 13
-- JABBER: type is away
-- JABBER: I Do know how to handle presence!!
Would anyone shed some light on what we're missing here, please?
Here are the relevant configuration file pieces...
(1) sip.conf
------------
[general]
context=from-gtalk
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
dtmfmode=rfc2833
relaxdtmf=no
disallow=all
allow=ulaw
allow=alaw
allow=gsm
maxexpirey=30
defaultexpirey=180
canreinvite=yes
nat=0
UserAgent=Asterisk
echocancel=yes
echocancelwhenbridge=yes
(2) gtalk.conf (this file is not present. Should it be??)
(3) jabber.conf
---------------
[general]
;debug=yes
;autoprune=yes
;autoregister=yes
[googletalk]
type=client
serverhost=talk.google.com
username=ast123@gmail.com
secret=gtpassxxxx
port=5222
;port=5223
usetls=yes
usesasl=yes
buddy=xyz456@gmail.com
statusmessage="Voice Calls Only"
timeout=100
(4) jingle.conf
---------------
[general]
context=from-gtalk
;context=default
allowguest=yes
[guest]
disallow=all
allow=ulaw
context=from-gtalk
;context=guest
[google]
username=ast123@gmail.com
disallow=all
allow=ulaw
context=from-gtalk
connection=asterisk
(5) extensions.conf (partial):
------------------------------
;incoming from GoogleTalk
[from-gtalk]
exten => s,1,NoOP("Incoming call from GoogleTalk to
ast123@gmail.com")
exten => s,n,Answer()
exten => s,n,Playback(thanks-for-calling)
exten => s,n,Dial(SIP/101,60,t)
exten => s,n,Hangup
;outgoing to GoogleTalk
[to-gtalk]
exten => 190,1,NoOp("Calling GoogleTalk user xyz456@gmail.com")
exten => 190,n,Dial(Jingle/googletalk/xyz456@gmail.com)
(note that ast123@gmail.com and xyz456@gmail.com are fictitious names
for debugging only)
- If you have this working, please share your sanitized configuration files.
- Can you explain the messages "JABBER: I Dont have an IQ!!!" and
"JABBER: I Do know how to handle presence!!" and what's required
to
correct the problems.
Thanks much,
Alvin
Bromont -
2006-Oct-05 13:51 UTC
[asterisk-users] RE: Getting Asterisk to work with GoogleTalk
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@gmail.com/Talk <------
secret=gtpassxxxx
port=5222
usetls=yes
usesasl=yes
buddy=xyz456@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@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@gmail.com")
exten => 190,n,Dial(gtalk/googletalk/xyz456@gmail.com) <------
Robert LaPoint
2006-Oct-06 09:50 UTC
[asterisk-users] RE: Getting Asterisk to work with GoogleTalk
I have followed this configuration to the letter but still no joy. Do I have
to load some modules at start up like gtalk.so or jabber.so? Should my user
show up as available on other peoples buddy list after asterisk starts?
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Bromont -
Sent: Thursday, October 05, 2006 4:51 PM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] RE: Getting Asterisk to work with GoogleTalk
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@gmail.com/Talk <------
secret=gtpassxxxx
port=5222
usetls=yes
usesasl=yes
buddy=xyz456@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@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@gmail.com")
exten => 190,n,Dial(gtalk/googletalk/xyz456@gmail.com) <------
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users