Ok so I have setup a few users who have been assigned voicemail boxes
I know I can do This
exten => 1234,1,Dial(SIP/{$EXTEN}, 30)
exten => 1234,2,VoiceMail(888@default)
exten => 1234,3,PlayBack(vm-goodbye)
exten => 1234,4,HangUp()
But How do I get Asterisk to get the ${EXTEN} voicemail box number?
ie.
my EXTEN SIP username is russellharrower
but my voicemail box number is 888
I don’t believe I can do
or can I?
you have syntax problem . you should write
exten => 1234,2,VoiceMail(${EXTEN}@default)
instead of
exten => 1234,2,VoiceMail({$EXTEN}@default)
that works kinda.
I need the asterisk to read mailbox from user.conf for that user and send the mail to that users mailbox.
Since one user might have 4 DID numbers I dont want to manually code each extension.
Please help
To be a bit more clear this is what I have done
exten => 61390.,1,NoOp(Received incoming SIP connection from unknown peer ${EXTEN})
exten => 61390.,n,AGI(agi://127.0.0.1:4577/call_log)
exten => 61390.,n,Dial(SIP/russellharrower,20,Ttor)
exten => 61390.,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail)
exten => 61390.,n(unavail),Voicemail(russellharrower,s,u)
exten => 61390.,n(busy),VoiceMail(russellharrower,s,b)
But I want it to know that what ever the exten is ie 61309 It should look for a ${LABEL} that has that exten linked to it.
Then it should get the userbase which in this case is my name.