[Asterisk-Users] What's in ${EXTEN} ? Why does voicemail prompt for an extension?

Andreas Frackowiak zok at horga.de
Sat May 15 02:31:30 MST 2004


> Why does voicemail prompt me for an extension instead of just asking my
> password?

Because there is no Voicemailbox "99" in that context in
your configuration. 


> [voice-mail]
> exten => 99,1,VoicemailMain(${EXTEN}@inside)
> exten => 99,2,Hangup

In your example, $EXTEN will always be 99, because that
is the extension.

If you would like to have the "99" as a prefix for the
following voicemailbox number you could do something like:

exten => _99.,1,VoicemailMain(${EXTEN:2}@inside)
exten => _99.,2,Hangup

And then "99123" would go directly to Mailbox "123" (if it exists).

regards
Andreas





More information about the asterisk-users mailing list