Summary:ASTERISK-05755: Asterisk does not handle MWI notifications from external voicemail systems.
Reporter:Justin Berg (jtberg)Labels:
Date Opened:2005-12-02 00:45:41.000-0600Date Closed:2011-06-07 14:03:02
Versions:Frequency of
Environment:Attachments:( 0) asterisk_sip_debug.txt
Description:When intergrating Asterisk with external voicemail applications, e.g. Cisco Unity Messaging, Asterisk does not accept notification from external voicemail application and in turn does not noitfy phones registered to Asterisk.


I am using Cisco Unity Messaging. Upon change in status of the MWI, Cisco Unity sends notification to Asterisk to enable/disable MWI. It does this using a SIP notify, please see attached file. Although Asterisk does send back an OK 200 to Cisco Unity, Unity is expecting more/different information as it says failed setting MWI, Perhaps it is wanting a 202 accepted?. I unfortunately don't currently have an example of Unity working with another SIP PBX to provide full working packet sniff. I could if I knew what would give a correct response, perhaps a fully sip complaint proxy like sipX?

I was thinking even if there could be basic support for this; say two new variables in sip.conf


Then upon receiving a notify from Cisco Unity, or other external voicemail system, it would run the specified script and pass the extension as an argument. E.g extension 300, “/usr/script/mwi_on.sh 300” Some one could then make there own script to do what they want. An example would be to create or remove a file from the /var/spool/asterisk/voicemail/default/300/
This would be enough to have a functional MWI implementation with an external voicemail system.
Also even if Cisco Unity did not get the appropriate response it would still generate the requests. It would just fill up the event log.

Also note that when bug 0004369 gets completed this feature would allow running asterisk voicemail on a sepreate box. e.g. Have multiple Asterisk PBX at each site and have master Asterisk voicemail at head office, etc.

Thank you for you consideration of this feature.
Comments:By: Kevin P. Fleming (kpfleming) 2005-12-12 22:16:04.000-0600

Feature requests should be posted to the mailing lists and/or wiki, to see if anyone is interested in doing the work to implement them.