Asterisk 设置 Voicemail 简略

/etc/asterisk/voicemail.conf

[general]
format = wav
maxmsg = 100 //最大留言数

[default]
8000 => 8000,xx xx,xxx@xxx.com //第一个8000是信箱号,第二个8000是密码,第三位是姓名,第四位是Email地址。这个号和分机号是独立存在的,不过建议设的一样容易分配。

/etc/asterisk/extensions.conf

[sip]
exten => s,1,Dial(${PHONE00},${gtimeout},tr)
exten => s,2,Voicemail(8000,u) //外线接入无人接听后转到Voicemail,8000是之前voicemail.conf里设置的信箱号。
exten => s,n,Hangup()

[phone]
exten => 8000,1,Dial(SIP/8000,10) //“10”是振铃时长。
exten => 8000,2,VoiceMail(8000,u) //分机呼分机无人接听后转语音信箱。
exten => 9999,1,VoiceMailMain(${CALLERID(num)},s) //拨打这个分机号会转入语音信箱主菜单,后面那堆参数是略过输入信箱号和密码。

基础配置可以参考 @bao3 的配置文件:sip.conf extensions.conf

Leave a Reply

Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).