asterisk的配置文档

 用两个sip电话通过asterisk服务互通打电话,需要配置sip.conf,extension.conf:
sip.conf
[general]
context=default;默认进入的拨号方案
allowoverlap=no
bindport=5060;监听端口
bindaddr=0.0.0.0;监听所有过来的电话
srvlookup=yes

[101]
type=friend;用户类型
secret=101;密码
host=dynamic;动态IP
context=internal;extension拨号方案
username=101;用户名
callgroup=1;呼叫组
pickupgroup=1;可以抢接与callgroup号相同的电话

[102]
type=friend;用户类型
secret=102;密码
host=dynamic;动态IP
context=internal;extension拨号方案
username=102;用户名
callgroup=1;呼叫组
pickupgroup=1;可以抢接与callgroup号相同的电话

extension.conf
[default]
[internal]
exten=>101,1,Dial(SIP/101,20);20是超时秒数
exten=>102,1,Dial(SIP/102,20)

若要配置会议电话
在meetme.conf中写入
[general]
[rooms]
Conf=>1001;conf=>1001,1,2;1是用户密码,2是管理员密码

在extension.conf中加入
exten=>1234,1,MeetMe(1001||);不需要加密码

若要使用呼叫驻留,在extension.conf中加入
include=>parkedcalls
exten=>101,Dial(SIP/102,,t)
exten=>102,Dial(SIP/102,,t)

若要使用免打扰,在extension.conf中加入
exten=>104,1,Zapateller(nocallerid) 
安装完CenterOS5.4 系统登陆后进到#号下,一般我们选择/usr/src目录进行下载及安装: cd /usr/src //安装开发环境及编绎环境: yum -y groupinstall 'Development Tools' yum -y install libtool* yum -y install kernel-heads* yum -y install ncurses-dev* yum -y install kernel-devel yum install -y kernel kernel-devel //下载最新的ver:1.6版本 wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4.10.2.tar.gz wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.2.8-rc1.tar.gz wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-1.6.2.1.tar.gz wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-2.3.0.tar.gz wget http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-2.3.0.tar.gz //安装libpri: tar zxvf libpri-1.4.10.2.tar.gz cd libpri-1.4.10.2 make make install cd .. //安装dahdi驱动: tar zxvf dahdi-linux-2.3.0.tar.gz cd dahdi-linux-2.3.0 make make install cd .. //安装dahdi-tools工具: tar zxvf dahdi-tools-2.3.0.tar.gz cd dahdi-tools-2.3.0 ./configure make make install make config cd .. Dahdi开启回音消除模块:编辑/etc/dahdi/modules 在末尾处添加Dahdi_echocan_mg2 yum install libxml2-devel ncurses-devel subversion doxygen texinfo yum install gcc-c++ make gnutls-devel kernel-devel //安装asterisk: tar zxvf asterisk-1.6.2.8-rc1.tar.gz cd asterisk-1.6.2.8-rc1 ./configure make make install make config make samples cd .. //安装asterisk扩展包(H323\mysql支持): tar zxvf asterisk-addons-1.6.2.1.tar.gz cd asterisk-addons-1.6.2.1 ./configure make make install make samples 至此 asterisk的基本环境安装完毕!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值