Checking voicemail remotely
Tuesday, August 7th, 2007I have been asked by many people how to check your voicemail from out of the office. Normally this is an easy process, however if you don’t have an auto attendant, it doesn’t seem so easy. I researched the voicemail command and found it is quite easy. Here is the output of a “show application voicemail”.
-= Info about application ‘VoiceMail’ =-
[Synopsis]
Leave a Voicemail message
[Description]
VoiceMail(mailbox[@context][&mailbox[@context]][...][|options]): This
application allows the calling party to leave a message for the specified
list of mailboxes. When multiple mailboxes are specified, the greeting will
be taken from the first mailbox specified. Dialplan execution will stop if the
specified mailbox does not exist.
The Voicemail application will exit if any of the following DTMF digits are
received:1*CLI>
0 – Jump to the ‘o’ extension in the current dialplan context.
* – Jump to the ‘a’ extension in the current dialplan context.
This application will set the following channel variable upon completion:
VMSTATUS – This indicates the status of the execution of the VoiceMail
application. The possible values are:
SUCCESS | USEREXIT | FAILED
Options:
b – Play the ‘busy’ greeting to the calling party.
g(#) – Use the specified amount of gain when recording the voicemail
message. The units are whole-number decibels (dB).
s – Skip the playback of instructions for leaving a message to the
calling party.
u – Play the ‘unavailable’ greeting.
j – Jump to priority n+101 if the mailbox is not found or some other
error occurs.
The interesting part is “* – Jump to the ‘a’ extension in the current dialplan context.” This means if a line is added in the same context as the the voicemail(…) line, it will jump to the “a” extension if the user pushes the “*” button during the greeting playback.
Here is an example. If extension 100 that rings and then rolls to voicemail, the code might look like the following.
exten => 100,1,Dial(SIP/100,15)
exten => 100,n,Voicemail(100@default)
By adding a third line of code, the user can push “*” and jump to the VoicemailMain application.
exten => 100,1,Dial(SIP/100,15)
exten => 100,n,Voicemail(100@default)
exten => a,1,VoicemailMain(100@default)