[Asterisk-Users] question re voicemail

Brian West brian at bkw.org
Mon Jan 5 17:47:22 MST 2004


> extensions.conf
> ------------------------
> [sip]
> ;ring
> exten => 5104112978,1,Dial(SIP/5104112978,20,tr)
> exten => 6882332,1,Dial(SIP/6882332,15,tr)
> exten => 1111,1,Dial(SIP/1111,5,tr)
>
> ;unanswered
> exten => 6882332,102,Voicemail,u6882332
> exten => 5104112978,102,Voicemail,u5104112978
> exten => 1111,102,Voicemail,u1111
>
> ;busy
> exten => 6882332,103,Voicemail,b6882332
> exten => 5104112978,103,Voicemail,b5104112978
> exten => 1111,103,Voicemail,b1111
>
> ;get message
> exten => 1234,1,VoicemailMain(6882332);
> exten => 9999,1,VoicemailMain(1111);
>
> voicemail.conf
> ---------------------
>
> [default]
> 6882332 => 6882332,test1,jess at arretni.com
> 5104112978 => 5104112978,test2, jess at arretni.com
> 9011 => 9011,Asterisk,jess at arretni.com
> 1111 => 1111,Nada,jess at arretni.com

I would do this:

exten => 1111,1,Dial(SIP/1111,5,tr)
exten => 1111,2,Voicemail,u1111
exten => 1111,102,Voicemail,b1111

Your priority numbering was off a little and its best to group the whole
extension together instead of spreading them out.  Helps to make sure you
don't get lost.  Also that 5 is in seconds.. not rings.

I would do this

[default]
exten => 1111,1,Macro(stdexten|1111)
exten => 6882332,1,Macro(stdexten|6882332)
exten => 5104112978,1,Macro(stdexten|5104112978)


[macro-stdexten]
exten => s,1,Dial(SIP/${ARG1},20,tr)
exten => s,2,Voicemail(u${ARG1})
exten => s,3,Hangup
exten => s,102,Voicemail(b${ARG1})
exten => s,103,Hangup


Hope that helps.


bkw




More information about the asterisk-users mailing list