Question : Asterisk 1.4.2.4 Voicemail config

Hi Gurus,

Need simple help with configuring our voicemailmain app to bypass/skip the passcode requirement when users access vmail from their own phones.

Before, I had set the voicemailmain app to read based on the callerid(num) function to pass the user's extension to the voicemailmain, i.e.

exten => 400,1,VoiceMailMain(${CALLERID(num)}@inside|s)
exten => 400,2,Hangup

However, we've changed the callerid setting on the sip.conf so that each user when dialing out will display their DID number to external sources.

So what's the best way to workaround this issue?

Answer : Asterisk 1.4.2.4 Voicemail config

This is not too hard...

let's start with this example...
with my internal extensions 3300 - 3399....

[default]
exten => 33XX,1,Set(__USEREXTEN=${CDR(src)})
exten => 33XX,n,GotoIf($[${CDR(src)} = ${CDR(dst)}]?voicemailmain,s,1)
exten => 33XX,n,Dial(SIP/${EXTEN})
exten => 33XX,n,Voicemail(${EXTEN}@default,u)

[voicemailmain]
exten => s,1,Answer()
exten => s,n,VoicemailMain(${USEREXTEN},s)
exten => s,n,Hangup()
Random Solutions  
 
programming4us programming4us