login | register
Thu 07 of Aug, 2008 [22:55 UTC]

voip-info.org

Asterisk Speaks with Google Talk

Created by: supersuzanne,Last modification on Tue 25 of Sep, 2007 [03:17 UTC] by f4fahmed
I am very pleased to announce that Asterisk now speaks with Google Talk using the jingle protocol.
I do not know if any of you have been able to do it, but we have. Farrukh Ahmed can be contacted via gmail f4fahmed@gmail.com if you want him to install it on your asterisk. Farrukh Ahmed is an independent Asterisk Linux Guy, and does not work for supertec.com

Note: Asterisk 1.4 has this jabber/gtalk support on board.

Download Latest Asterisk Source from SVN Trunk


 cd /usr/src
 svn checkout http://svn.digium.com/svn/asterisk/trunk asterisk

Note: If you have Digium Cards then you need Zaptel

 svn checkout http://svn.digium.com/svn/zaptel/trunk zaptel 

Note: If you have PRI/BRI then you need Libpri

 svn checkout http://svn.digium.com/svn/libpri/trunk libpri

Download iksemel

To run autogen.sh you must have several packages, it will prompt you for the packages except for libgnutls-dev if you don't
have this it will generate an error message in configure.

 svn checkout http://svn.uludag.org.tr/projeler/iksemel iksemel

 cd iksemel
 ./autogen.sh
 ./configure --prefix=/usr
 make
 make check
 make install


Compiling Zaptel

Note: Make sure you have Kernel Source Installed On your server. If you are using Kernel 2.6.x you need to use following command to compile zaptel

 cd /usr/src/zaptel
 ./configure
 make clean
 make install
 make config
 make install-udev


Compiling Libpri

 cd /usr/src/libpri
 ./configure
 make 
 make install 



Compiling Asterisk

 cd /usr/src/asterisk
 ./configure
 make clean
 make install
 make samples


Configuring Asterisk along with chan_gtalk and res_jabber module.


cd /etc/asterisk
vi sip.conf

[general]
context=default
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

[1]
type=friend
context=default
regexten=1
username=1
secret=123456
fromuser=1
callerid=Farrukh Ahmed
host=dynamic
nat=route
canreinvite=no
dtmfmode=RFC2833
incominglimit=3
mailbox=1


vi extensions.conf

[general]
static=yes
writeprotect=yes
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[default]
exten => s,1,NoOP("Calling Gtalk")
exten => s,n,Dial(SIP/18005558355@tf.voipmich.com)
exten => 11,1,Dial(Gtalk/asterisk/f4fahmed@gmail.com)
exten => 22,1,Dial(Gtalk/asterisk/hellothere@gmail.com)
exten => 33,1,Dial(Gtalk/asterisk/dingdong@gmail.com)
exten => 44,1,JABBERSend(asterisk,f4fahmed@gmail.com,This is a test Message)


vi gtalk.conf

[general]
context=default
allowguest=yes

[guest]
disallow=all
allow=ulaw
context=guest

[google]
username=user1@gmail.com
disallow=all
allow=ulaw
context=default
connection=asterisk


vi jabber.conf

[general]
debug=yes
autoprune=no
autoregister=no

[asterisk]
type=client
serverhost=talk.google.com
username=user@gmail.com
secret=******
port=5222
usetls=yes
usesasl=yes
buddy=user1@gmail.com
statusmessage="I am an Asterisk Server"
timeout=100



See also



Comments

Comments Filter
222

333

by flauto, Saturday 29 of September, 2007 [02:53:54 UTC]
Good job! I followed your steps and my gtalk is working with asterisk. I have no problems making and get calls via gtalk.
222

333Re: libpri---configure

by f4fahmed, Tuesday 25 of September, 2007 [03:21:37 UTC]
I have updated it.
222

333libpri---configure

by k.keshav, Friday 22 of June, 2007 [03:43:49 UTC]
How did you run ./configure while installing libpri1.4 ??

Its really strange if you have did so...
plz tell me also how ./configure will work with libpri1.4


keshavk@gmail.com
222

333

by trixter, Sunday 20 of August, 2006 [22:42:46 UTC]
can asterisk do 16Khz google talk like freeswitch? Or can it only do some of the googletalk functionality?