Abhishek Singh Bailoo

Weblog

Oct 1

Configure jabber gtalk asterisk

#apt-get instal libgnutls-dev

Download, compile and install iksemel - xml parser and jabber protocol library

http://code.google.com/p/iksemel/downloads/list

Do not worry about the warning message, apparently iksemel does not compile with libgnutls2+ because of absence of gnutls-config but that is okay.

Compile and install asterisk after ensuring that jabber, gtalk channels and resources are selected in menuselect.

Configuration

#cat jabber.conf

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

[asterisk]
type=client
serverhost=talk.google.com
username=myname@gmail.com/Talk
secret=password
priority=1
port=5222
usetls=yes
usesasl=yes
buddy=username@gmail.com
status=available
statusmessage=”I am a robot! Ha!”
timeout=100

#cat gtalk.conf

[general]
context=default
allowguest=yes

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

#cat extensions.conf

[gtalk-in]
exten => s,1,Answer()
exten => s,n,Wait(3)
exten => s,n,SendDTMF(1)
exten => s,n,Goto(demo,s,1)

Also See

https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google