Hello everyone! This time, we will guide you step by step on how to install Asterisk 1.8.7.1 and configure Google Talk to make free calls all across US and Canada.
For this tutorial I’m using CentOs 5.5. Let’s begin downloading and installing Asterisk and iksemel (iksemel is an XML parser library designed for Jabber applications.) on your server.
[root@localhost ~]# cd /usr/src/ [root@localhost src]# wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.7.1.tar.gz [root@localhost src]# tar -xzvf asterisk-1.8.7.1.tar.gz [root@localhost src]# rm asterisk-1.8.7.1.tar.gz rm: remove regular file `asterisk-1.8.7.1.tar.gz'? y [root@localhost src]# cd asterisk-1.8.7.1 [root@localhost asterisk-1.8.7.1]# yum install gcc gcc-c++ make perl libxml2-devel ncurses-devel newt-devel openssl-devel kernel-devel –y [root@localhost asterisk-1.8.7.1]# cd - [root@localhost src]# wget http://iksemel.googlecode.com/files/iksemel-1.4.tar.gz [root@localhost src]# tar -xzvf iksemel-1.4.tar.gz [root@localhost src]# rm iksemel-1.4.tar.gz rm: remove regular file `iksemel-1.4.tar.gz'? y [root@localhost src]# cd iksemel-1.4 [root@localhost iksemel-1.4]# ./configure [root@localhost iksemel-1.4]# make [root@localhost iksemel-1.4]# make check [root@localhost iksemel-1.4]# make install [root@localhost iksemel-1.4]# cd - [root@localhost src]# cd asterisk-1.8.7.1 [root@localhost asterisk-1.8.7.1]# ./configure [root@localhost asterisk-1.8.7.1]# make menuselect [root@localhost asterisk-1.8.7.1]# make [root@localhost asterisk-1.8.7.1]# make install [root@localhost asterisk-1.8.7.1]# make samples [root@localhost asterisk-1.8.7.1]# cd /usr/ [root@localhost usr]# cp -r /usr/local/lib/* /usr/lib [root@localhost usr]# asterisk [root@localhost usr]# asterisk -r localhost*CLI> module load res_jabber.so localhost*CLI> module load chan_gtalk.so
sip.conf
[1000] type=friend secret=1000 host=dynamic context=local
jabber.conf
[general] autoregister=yes [asterisk] type=client serverhost=talk.google.com username=yourgmailaccount@gmail.com/Talk secret=yourgmailpassword port=5222 usetls=yes usesasl=yes statusmessage="Hello world!" timeout=100
gtalk.conf
[general] context=local allowguests=yes bindaddr=0.0.0.0 externip=youripaddress [guest] disallow=all allow=ulaw context=local connection=asterisk
extensions.conf
[local]
exten => s,1,Answer()
exten => s,n,Wait(8)
exten => s,n,SendDTMF(1)
exten => s,n,Set(name=${CALLERID(name)})
exten => s,n,Set(num=${CUT(name,@,1)})
exten => s,n,Set(CALLERID(all)=${num})
exten => s,n,Dial(SIP/1000,20,tT)
exten => s,n,Voicemail(1000@voicemail)
exten => s,n,Playback(vm-goodbye)
exten => s,n,Hangup()
exten => 100,1,Dial(gtalk/asterisk/randomfriend@gmail.com)
exten => _1XXXXXXXXXX,1,Dial(gtalk/asterisk/+${EXTEN}@voice.google.com)
And Remember dont forget to comment!