I am having difficulty in tyring to implement the "a" option for
VoiceMailMAin in my
agi script. The script does goto voicemail but when I when you press
the "*" key to
break out of my message it does not work. I have tried various combination of
the set_exec, set_extension, set_pirority but to no avail.
If I set my extension.conf to ignore the AGI script and run it as
below it works:
[vmail]
exten => s,1,Answer
exten => s,2,Voicemail(u${ext})
exten => s,3,Hangup
;The below "a" option triggers on the button
; press "*"
exten => a,1,VoicemailMain
exten => a,2,Hangup
or using the AGI script but not going to voicemail from the AGI script it works:
exten => _22XXX,1,Setvar(ext=${EXTEN:1})
exten => _22XXX,2,AGI(find-me.agi|${EXTEN:1})
exten => _22XXX,3,Goto,vmail|s|1
exten => _22XXX,4,hangup
[vmail]
exten => s,1,Answer
exten => s,2,Voicemail(u${ext})
exten => s,3,Hangup
;The below "a" option triggers on the button
; press "*"
exten => a,1,VoicemailMain
exten => a,2,Hangup
I could put in a statement saying going to voicemail. Then if someone
presses 9, it breaks out and goes to voicemailmain but, that's to easy
a fix.
Thanks,
Kurt