Name
VoiceMailMain() — Enters the voicemail system
Synopsis
VoiceMailMain([[s|p]mailbox
][@context
])
Enters the main voicemail system for the checking of voicemail.
Passing the mailbox
argument will stop the
voicemail system from prompting the user for the mailbox
number.
If the mailbox is preceded by the letter s
, the password check will be skipped. If
the mailbox is preceded by the letter p
, the supplied mailbox will be prepended to
the user’s entry and the resulting string will be used as the mailbox
number. This is useful for virtual hosting of voicemail boxes. If a
context
is specified, logins are considered
in that voicemail context only.
Returns -1
if the user hangs
up; otherwise, returns 0
.
; go to voicemail menu for mailbox 123 in the default voicemail context
exten => 123,1,VoiceMailMain(123@default)
See Also
VoiceMail()
,
voicemail.conf
Get Asterisk: The Future of Telephony now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.