设为首页收藏本站

 找回密码
 注册

QQ登录

只需一步,快速开始

BC Morning V1806 门户 IT世界 网络探讨 查看内容

Asterisk and Google Talk!

2011-11-17 14:01| 发布者: Test| 查看: 741| 评论: 0|来自: opentut.com

摘要: Hello everyone! This time, we will guide you step by step on how to install Asterisk 1.8.7.1 and configuring GoogleTalkto make free calls all across US and Canada. For this tutorial I’m using CentOs ...
Hello everyone! This time, we will guide you step by step on how to install Asterisk  1.8.7.1 and configuring  Google Talk to make free calls all across US and Canada.

For this tutorial I’m using CentOs 5.5 let’s begin by 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!

http://www.opentut.com/?p=1#respond

路过

雷人

握手

鲜花

鸡蛋

相关阅读

最新评论

手机版|BC Morning Website ( Best Deal Inc. 001 )  

GMT-8, 2025-7-8 10:46 , Processed in 0.014807 second(s), 18 queries .

Supported by Best Deal Online X3.5

© 2001-2025 Discuz! Team.

返回顶部