Skip to Content
Asterisk: The Future of Telephony
book

Asterisk: The Future of Telephony

by Jim Van Meggelen, Jared Smith, Leif Madsen
September 2005
Intermediate to advanced
408 pages
16h 20m
English
O'Reilly Media, Inc.
Content preview from Asterisk: The Future of Telephony

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Asterisk: The Future of Telephony, 2nd Edition

Asterisk: The Future of Telephony, 2nd Edition

Jim Van Meggelen, Jared Smith, Leif Madsen
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 0596009623Supplemental ContentCatalog PageErrata