asterisk 参数

[general]
port = 5060      #sip标准端口
bindaddr = 0.0.0.0  #asterisk listen所有ip
context = others



[2001]  #字母也可以如,[reception-1]
type=friend  #可以接听与拨打电话
context=my-phones
secret=1234 #使用数字较方便有话机输入
host=dynamic #2001号码是可以在不同ip的电脑上使用,不固定

 my-phones in /etc/asterisk/sip.conf, you must use the same name in the relevant part of /etc/asterisk/extensions.conf.

The syntax of a dialplan entry always follows this convention:

exten => Number,Priority,Application

[my-phones]
exten => 2000,1,Dial(SIP/2000,20)
exten => 2000,2,VoiceMail(2000,u)  #u 意思是使用标准的"unavailable" message

exten => 2999,1,VoiceMailMain(${CALLERID(num)},s) #s 不需要密码


 voicemail.conf


[general]
format = wav  #voicemail格式

[default]
2000 => 4711,Foo Bar,foo@bar.com   #收件人邮箱
2001 => 0815,Chuns Shen,chuns@shen.com
2002 => 1234,Sleepy Guitar,sleepy@guitar.com

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值