view · edit · print · history

After a fair amount of research, I have successfully integrated Google Talk into my Asterisk installation on the NSLU2. The pertinent complete .conf files are presented below. "XXXXXX" indicates where I am obscuring personal information. Three "buddies" are shown; more can be added.

gtalk and jabber modules have to be loaded; they are not loaded by default.

I set up a new GMail account XXXXX.asterisk@gmail.com. This shows up in my buddies' Google Talk client. Double clicking on it rings my Phone1 (Grandstream 2000) instantaneously. Dialing a 7000 series number on Phone1 connects me with the Google Talk client. Voice quality is pretty good.


context=google-in               ;;Context to dump call into
allowguest=yes                  ;;Allow calls from people not in
                                ;;list of peers

[guest]                 ;;special account for options on guest account

username=XXXXXX.asterisk@gmail.com    ;;username of the peer your
                                      ;;calling or accepting calls from
connection=asterisk             ;;client or component in jabber.conf
                                ;;for the call to leave on.


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=XXXXXXX.asterisk@gmail.com/Talk       ;;Username with optional
secret=Password                         ;;Password
port=5222                               ;;Port to use defaults to 5222
usetls=yes                              ;;Use tls or not
usesasl=yes                             ;;Use sasl or not
buddy=XXXXXXX1@gmail.com                ;;Manual addition of buddy to list.
statusmessage=Digium Asterisk Server - Voice calls only ;;Have custom
                                        ;;status message for Asterisk.
timeout=100                             ;;Timeout on the message stack.


exten => s,1,NoOp( Call from GTalk )
exten => s,n,Set(CALLERID(name)="From Google Talk")
exten => s,n,Dial(SIP/phone1,20,tr)

exten => 7XX3,1,JabberStatus(asterisk,XXXXXXX3@gmail.com,STATUS)
exten => 7XX3,2,GotoIf($[${STATUS}<6]?3:5)
exten => 7XX3,3,JABBERSend(asterisk,XXXXXXX3@gmail.com, Hi XXXXXXX3 ${CALLERID(name)} at Ext. ${CALLERID(num)} is calling you.)
exten => 7XX3,4,Dial(Gtalk/asterisk/XXXXXXX3@gmail.com)
exten => 7XX3,5,Voicemail(6XXX,u)
exten => 7XX2,1,JabberStatus(asterisk,XXXXXXX2@gmail.com,STATUS)
exten => 7XX2,2,GotoIf($[${STATUS}<6]?3:5)
exten => 7XX2,3,JABBERSend(asterisk,XXXXXXX2@gmail.com, Hi XXXXXXX2 ${CALLERID(name)} at Ext. ${CALLERID(num)} is calling you.)
exten => 7XX2,4,Dial(Gtalk/asterisk/XXXXXXX2@gmail.com)
exten => 7XX2,5,Voicemail(6XXX,u)
exten => 7XX1,1,JabberStatus(asterisk,XXXXXXX1@gmail.com,STATUS)
exten => 7XX1,2,GotoIf($[${STATUS}<6]?3:5)
exten => 7XX1,3,JABBERSend(asterisk,XXXXXXX1@gmail.com, Hi XXXXXXX1 ${CALLERID(name)} at Ext. ${CALLERID(num)} is calling you.)
exten => 7XX1,4,Dial(Gtalk/asterisk/XXXXXXX1@gmail.com)
exten => 7XX1,5,Voicemail(6XXX,u)

view · edit · print · history · Last edited by cdoban.
Originally by cdoban.
Page last modified on October 14, 2007, at 05:35 AM