System information

[zonemessages]
eastern=America/New_York|'vm-received' Q 'digits/at' IMp
central=America/Chicago|'vm-received' Q 'digits/at' IMp
central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
[shifteight.org]
100 => 1234,Leif Madsen,leif@shifteight.org
101 => 1234,Jim Van Meggelen,jim@shifteight.org
102 => 1234,Russell Bryant,russell@shifteight.org
103 => 1234,Jared Smith,jared@shifteight.org
Setting up a Linux server to handle the sending of email is a Linux ad-
ministration task that is beyond the scope of this book. You will need
to test your voicemail to email service to ensure that the email is being
handled appropriately by the Mail Transfer Agent (MTA),
and that
downstream spam filters are not rejecting the messages (one reason this
might happen is if your Asterisk server is using a hostname in the email
body that does not in fact resolve to it).
Dialplan Integration
There are two primary dialplan applications that are provided by the app_voice-
mail.so module in Asterisk. The first, simply named VoiceMail(), does exactly what
you would expect it to, which is to record a message in a mailbox. The second one,
VoiceMailMain(), allows a caller to log into a mailbox to retrieve messages.
The VoiceMail() Dialplan Application
When you want to pass a call to voicemail, you need to provide two arguments: the
mailbox (or mailboxes) in which the message should be left, and any options relating
to this, such as which greeting to play or whether to mark the message as urgent. The
structure of the VoiceMail() command is this:
VoiceMail(mailbox[@context][&mailbox[@context][&...]][,options])
The options you can pass to VoiceMail() to provide a higher level of control are detailed
in Table 8-4.
‡ Also sometimes called a Message Transfer Agent.
Dialplan Integration | 169