O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required