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

Paul Mahler pmahler at signate.com
Sun May 16 23:04:32 MST 2004


Excellent answer. Thank you very much.

Paul


Paul Mahler 
pmahler at signate.com 	
Signate, LLC
PO Box 60430
Palo Alto, CA
 94306

> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com 
> [mailto:asterisk-users-admin at lists.digium.com] On Behalf Of 
> Andreas Frackowiak
> Sent: Saturday, May 15, 2004 1:32 AM
> To: asterisk-users at lists.digium.com
> Subject: Re: [Asterisk-Users] What's in ${EXTEN} ? Why does 
> voicemail prompt for an extension?
> 
> > 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
> 
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list