Asterisk配置两部SIP软电话

用两个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) 

猜你喜欢

转载自cissco.iteye.com/blog/288631