[asterisk-dev] SUBSCRIPTION for MWI support for multiple boxes

Norman Brandinger norm at goes.com
Wed Sep 19 11:22:10 CDT 2007


In reference to this thread:

http://lists.digium.com/pipermail/asterisk-dev/2006-October/023925.html

Was this idea tabled or was it implemented ?  I would be willing to put
some development efforts into helping to make this work (so that we can
remove, or at least not wholly depend on externnotify).

In a nutshell, would appear to require multiple NOTIFYs being sent from
Asterisk to the peer, one for each "mailbox=" entry.

We are trying to implement a SPA9000 solution without depending on the
SPA400 voicemail server (which, by the way, is based on Asterisk).

Regards,
Norm

p.s. I'll be really embarrassed if this already works and I couldn't
figure out how to configure it (even after RTFM/RTFT).

Below is the relevant section of the Linksys SPA9000 Admin Guide:

The SPA9000 sends a one-time SUBSCRIBE for the message-summary event
package for each line with a valid <Mailbox Subscribe URL>. The
SUBSCRIBE implies subscription for the status of all the mailboxes
associated with the voicemail account used-ID; it does not include any
mailbox ID in the request. Following is an example:

SUBSCRIBE sip:mailbox-subscribe-url SIP/2.0
Via: SIP/2.0/UDP 172.16.22.23:5062;branch=z9hG4bK-44f9d0f0
From: Line 3 <sip:14089991003 at sip.myitsp.com>;tag=ac6013983cce7526
To: <sip:mailbox-subscribe-url>
Call-ID: ace86200-bbe839de at 172.16.22.23
CSeq: 63017
SUBSCRIBE Max-Forwards: 70
Contact: <sip:14089991003 at 172.16.22.23:5062>
Expires: 2147483647
Event: message-summary
User-Agent: Sipura/SPA9000-3.2.2
Content-Length: 0

Note that the Expires value is purposely set to a very large number so
the subscription does not expire and there is no need to renew the
subscription. The voicemail server is expected to send a NOTIFY
immediately upon receiving this SUBSCRIBE message for each mailbox on
this account. The Request-URI of the NOTIFY should reference the CONTACT
header of the corresponding SUBSCRIBE, but the user-ID in the To header
should be the mailbox ID. The following example shows a NOTIFY for the
mailbox ID 5031 on the account 14089991003:

NOTIFY sip:14089991003 at 172.16.22.23:5062 SIP/2.0
Via: SIP/2.0/UDP 178.178.221.230;branch=z9hG4bK-44f9d0f0
From: <sip:voicemail at sip.myitsp.com>;tag=ab789
To: <sip:5031 at 172.16.22.23:5062>;tag=ac6013983cce7526
Call-ID: ace86200-bbe839de at 178.178.221.230
CSeq: 537
NOTIFY Expires: 2147483647
Event: message-summary User-Agent: ITSP/Voicemail-Server
Content-Length: 0



More information about the asterisk-dev mailing list