Mailbox

From Snom Asterisk Portal

Asterisk 1.4 > Asterisk 1.4/Mailbox

Contents

Feature description

An electronic mailbox is a voicemail system, which answers all calls while a phone is busy or in DND State. Normally the mailbox is handled by the PBX and can be called using a star code or a function key.

Configure Asterisk

voicemail.conf

It is neccessary to create a configuration line for each mailbox in the context [default] or a freely defined other context.

We suggest you just use the default context.

Every line looks like this schema:

number => pin, name, mail

Example voicemail.conf:

[default]
10 => 1234, John Doe, 
11 => 4321, Jane Doe, jane.doe@example.domain

[special_context]
99 => 0815, Special Box,

The contexts in voicemail.conf are not related to contexts in the extensions.conf.

Note that it is not neccessary to define an eMail address for a voicemail entry. Jane does also receives her messages via eMail, because she is mostly out of the office.

sip.conf

First, define the extension which the phone should dial to reach the mailbox.

[general]
vmexten=voicemail

Additionally, assign each mailbox to a sip peer. (means: snom phone)

Example peer (phone):

[10]
type=friend
secret=password
mailbox=10

If you defined your mailboxes within another context as [default] in sip.conf, you need to specify this context too:

mailbox=99@special_context

extensions.conf

For the following example it is presumed that all voicemails have the same name as their corresponding SIP peers.

[internal]
include => dialout
exten => _XX,1,Dial(SIP/${EXTEN}, 35)
exten => _XX,2,VoiceMail(u${EXTEN})
exten => _XX,102,VoiceMail(b${EXTEN})

exten => voicemail,1,VoiceMailMain(${CALLERID(num)})

Pressing the voicemail button on your snom phone calls the extension "voicemail" which executes the voicemail application with the name of the calling SIP peer.

In Dial() the ringing is limited to 35 seconds and the caller is presented with the mailbox. If the extension is busy Asterisk will jump to the current Priority plus 101 and also presents the caller with the mailbox system.

The flags "u" and "b" for the Voicemail() command let the dialplan choose different voice greetings for "busy" and "unavailable".

Configure snom phones

There is no configuration needed for the snom phones as Asterisk fully supports MWI messages. Just leave the field "Mailbox" blank for your Identity.

FAQ

I see the error "digits/1F does not exist in any format" when calling the mailbox.

Cause: Language files for the language you selected are not installed
Solution: Set language to en in sip.conf or install corresponding sound files for the selected language