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 [email protected] 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
For installation on ubuntu 7.10 you need execute before:
“apt-get install libgnutls-dev texinfo”
edit:
ikesemel deprecated
just brokw my head here for the whole day to find out that the iksemel was not working propperly for ubuntu 10.10 so I dug around and found that there is a newer version at http://code.google.com/p/iksemel/downloads/list , untar, and follow the instructions as decribed, thanks
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/[email protected])
exten => 11,1,Dial(Gtalk/asterisk/[email protected])
exten => 22,1,Dial(Gtalk/asterisk/[email protected])
exten => 33,1,Dial(Gtalk/asterisk/[email protected])
exten => 44,1,JABBERSend(asterisk,[email protected],This is a test Message)
vi gtalk.conf
[general]
context=default
allowguest=yes
[guest]
disallow=all
allow=ulaw
context=guest
[google]
[email protected]
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
[email protected]
secret=******
port=5222
usetls=yes
usesasl=yes
[email protected]
statusmessage=”I am an Asterisk Server”
timeout=100