Voicemail Question

May have already been covered, or documented somewhere… but I can’t find any reference!

Logging into voicemail. Is it possible to do away with the authentication method, ie. entering ‘mailbox’ and ‘password’ - an automatic authentication kinda thing based on the extension that calls the voicemail number.

Any pointers on this would be a great help. Thanks!

Sure you can!

Set the callerID into a Variable “whatever”


s = skip password

Im not quite sure that $variable@context will work, but it it doesnot, just do a list of GOTOIFs

exten => x,n,gotoif($["${whatever}"=“2120001234”],mail1,1)
exten => x,n,gotoif($["${whatever}"=“3470001234”],mail2,1)

exten => mail,1,voicemailmain(101@context|s)

Check the wiki
voip-info.org/wiki/view/Asterisk … n+commands


… it works. Thanks for your help.

I have a few more questions on different issues, but I’ll start new posts for them.

Thanks again.


You can do it like this;

Change the context to what ever yours is.

;Check Voice Mail
exten => 8500,1,VoiceMailMain(${CALLERID(num)}@default|s)
exten => 8500,2,Hangup()