There are two voicemail applications we can use in the dialplan
(extensions.conf):
VoiceMail()
VoiceMailMain()
Action: The caller is prompted to leave a voice message.
The VoiceMail() command is always called from the
dialplan (extensions.conf). For example:
exten => 2000,2,VoiceMail(2000,u)
VoiceMail(mailbox[@context][,u|b|s])
mailbox
@context
Mailboxes may be implemented in a specific context. If no context is provided, the [default] context is used.
| If the caller presses "0" while listening to the prompt, the application will jump to extension "o" (the small letter o) in the specified context. |
| If the caller presses "*" while listening to the prompt, the application will jump to extension "a" (the small letter a) in the specified context. |
[u|b|s]
u
/var/lib/asterisk/sounds/vm-isunavail.gsm[16]b
/var/lib/asterisk/sounds/vm-rec-busy.gsm.s
If there is no mailbox configured in
voicemail.conf for the given number but there is
a n+101 priority, Asterisk jumps to this priority and continues
executing there.
Action: Lets users listen to their voicemail messages and record prompts.
The VoiceMailMain() command is always called from
the dialplan (extensions.conf). For
example:
exten => 300,1,VoiceMailMain()
VoiceMailMain([mailbox][@context][,s|p|g(#)])
mailbox
@context
voicemail.conf) for the mailbox.[s|p|g#]
s
p
g(#)
A complete description of the voice menus for
VoiceMailMain() is difficult because they depend on the
installed prompts. The main functions are described below.
1
|
Play messages | ||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
2
|
Change folders | ||||||||||||||||||||||||||||
0
|
Mailbox options | ||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
*
|
Help | ||||||||||||||||||||||||||||
#
|
Exit |
[16] If you are using a pre-packaged Asterisk, the
path may be different; for example,
/usr/share/asterisk/sounds/.