[asterisk-users] VoicemailMain()

Eric "ManxPower" Wieling eric at fnords.org
Thu Sep 21 06:14:48 MST 2006


Michel Zenone wrote:
> Hi!
> 
> Is this possible to make asterisk follow the dial plan after executing
> VoicemailMain?

Happens by default, unless the caller hangs up of course.

; Give voicemail at extension 3509
exten => 3509,1,SetVar(LOOP=1)
exten => 3509,2,Answer
exten => 3509,3,Wait(.5)
exten => 3509,4,GotoIf($[X${RDNIS} = X]?5:10)
exten => 3509,5,VoicemailMain
exten => 3509,6,Wait(.5)
exten => 3509,7,GotoIf($[${LOOP} = 3]?11:8)
exten => 3509,8,SetVar(LOOP=$[${LOOP} + 1])
exten => 3509,9,Goto(5)
exten => 3509,10,VoiceMail(u${RDNIS})
exten => 3509,11,Hangup




More information about the asterisk-users mailing list