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

VoiceMail() — Leaves a voicemail message in the specified mailbox

Synopsis

    VoiceMail([s|u|b]mailbox[@context][&mailbox[@context]][...])

Leaves voicemail for a given mailbox (must be configured in voicemail.conf).

If the mailbox is preceded by s, instructions for leaving the message will be skipped. If it is preceded by u, the “unavailable” message (/var/lib/asterisk/sounds/vm/exten/unavail) will be played, if it exists. If the mailbox is preceded by b, the busy message will be played (that is, busy instead of unavail).

If the caller presses 0 (zero) during the prompt, the call jumps to the o (lower-case letter o) extension in the current context.

If the caller presses * during the prompt, the call jumps to extension a in the current context. This is often used to send the caller to a personal assistant.

If the requested mailbox does not exist, and there exists a priority n+101 (where n is the current priority), that priority will be taken next.

When multiple mailboxes are specified, the unavailable or busy message will be taken from the first mailbox specified.

Returns -1 on error or mailbox not found, or if the user hangs up; otherwise, returns 0.

    ; send caller to unavailable voicemail for mailbox 123
    exten => 123,1,VoiceMail(u123)

See Also

VoiceMailMain(), 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