Asterisk Speaks with Google Talk
Created by: supersuzanne,Last modification on Mon 01 of Sep, 2008 [19:39 UTC] by orazio
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.
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
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
For installation on ubuntu 7.10 you need execute before:
"apt-get install libgnutls-dev texinfo"
cd /usr/src/zaptel
./configure
make clean
make install
make config
make install-udev
./configure
make
make install
./configure
make clean
make install
make samples
cd /etc/asterisk
vi sip.conf
vi extensions.conf
vi gtalk.conf
vi jabber.conf
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'thave 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
For installation on ubuntu 7.10 you need execute before:
"apt-get install libgnutls-dev texinfo"
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 zaptelcd /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
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)
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
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
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
- Asterisk Google Talk
- Asterisk jabber
- Asterisk channels
- Get Asterisk to Send you IAX2 peer statistics to your GoogleTalk account

Comments
333
333Re: libpri---configure
333libpri---configure
Its really strange if you have did so...
plz tell me also how ./configure will work with libpri1.4
keshavk@gmail.com
333