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,[email protected]   #收件人邮箱
2001 => 0815,Chuns Shen,[email protected]
2002 => 1234,Sleepy Guitar,[email protected]

你可能感兴趣的:(asterisk)