Allows the caller to leave a voice mail message in the specified
mailbox.
VoiceMail(mailbox
[@context
][&mailbox
[@context
][&...
]],options
)
old syntax:
VoiceMail([s|u|b]mailbox
[@context
][&mailbox
[@context
][&...
]])
Allows the caller to leave a voice mail message in the specified
mailbox. The mailbox must already be configured in
voicemail.conf
. If more than mailbox is listed, the
greeting from the first mailbox is the one that is played. If the mailbox
does not exist, dialplan execution ends.
The option s
(silent) suppresses the prompt. The
option u
plays the "unavailable" message, if it exists. The
option b
plays (busy) message, if it exists (file
busy
instead of
unavail
).
Warning
You cannot mix syntax types. If you do, the application will fail
as though the mailbox does not exist. We recommend always using the new
syntax.
If option j
is set, jumps to extension
n
+101, if it exists, on failure.
If the caller presses 0
during the prompt, the call
goes to extension o
(small letter "o", for operator) in the
current context.
If the caller presses *
during the prompt, the call
goes to extension a
(small letter "a", for assistant) in the
current context.
Returns -1 in case of error (the mailbox could not be found or
the caller hung up) otherwise returns 0. Sets the channel variable
VMSTATUS
to SUCCESS
, USEREXIT
(the
caller cancelled the message) or FAILED
.
; send the caller to mailbox 123, play the unavailable message:
exten => 123,1,VoiceMail(123,u)