login | register
Thu 07 of Aug, 2008 [23:12 UTC]

voip-info.org

Discuss [2] History

Asterisk sip mailbox

Created by: oej,Last modification on Sat 09 of Dec, 2006 [23:53 UTC] by JustRumours

Asterisk sip mailbox=

Configure mailbox to check for message waiting indication (MWI) for this peer.

Syntax:
   mailbox=1234
or
   mailbox=1234@context
or
   mailbox=1234, 1235
to check multiple mailboxes.

Use the 1234@context notation if your mailbox is not located in the default context! With the advent of Voicemail2 (and the removal of voicemail version 1 in the end of 2003 from the Asterisk code) voicemail has become context sensitive.

Please note

The voicemail context and the extension context is not the same for a user. If you define a user/peer to belong to context=whatever in sip.conf, the mailbox=1234 config option will look for mailbox 1234 in the [default] context of voicemail.conf.

What happens

Asterisk watches the mailbox and if there's voice mail in the mailbox directory, sends a notification using the SIMPLE syntax. Your phone needs to support this.

You have to set notifymimetype=application/simple-message-summary in sip.conf (still necessary with Asterisk v1.2?)
For Asterisk v1.2: Do have a look at the sip.conf setting vmexten=together with fromdomain= (see bug/patch 4801) if e.g. want to make the "Retrieve" button work on a SNOM phone.

For those of you that understand SIP syntax, the message looks like this:


 To: <sip:3008@205.212.193.91>
 Contact: <sip:asterisk@205.212.193.101>
 Call-ID: 73fecd1b0818b5a104f19b7270c06475@205.212.193.101
 CSeq: 102 NOTIFY
 User-Agent: Asterisk PBX
 Event: message-summary
 Content-Type: application/simple-message-summary
 Content-Length: 37

 Messages-Waiting: yes     <<============
 Voicemail: 1/0


See also



Asterisk | SIP Channels | sip.conf | voicemail.conf | SIP Message Waiting Indication - explanation


Comments

Comments Filter
222

333Re: Not RFC 3842 compliant

by dan42, Thursday 13 of March, 2008 [15:51:02 UTC]
RFC 3458, section 6.2, defines the message-context-class and the correct value in the given example would be: "voice-message: 1/0"
222

333Not RFC 3842 compliant

by SDHank, Wednesday 04 of May, 2005 [22:05:14 UTC]
The message example documented isn't 3842 compliant. The body should read Voice-Messages: 1/0.