Hi,
I’m running asterisk 11.17.1 , and build my own custom voice mail.
What is the option to send notify on a new message waiting (MWI)?
Thank,
Noam
Developer questions go on the developer mailing list or IRC channels.
[quote=“nrones”]Hi,
I’m running asterisk 11.17.1 , and build my own custom voice mail.
What is the option to send notify on a new message waiting (MWI)?
Thank,
Noam[/quote]
You can do it in AMI, I’ve had mixed results doing it with AMI as some of my phones will accept the notice and some will not.
Action: SIPnotify
ActionID: 2
Channel: 701
Variable: Event=message-summary,Content-Type=application/simple-message-summary,Content=Messages-Waiting: yes,Content=Voice-Message:1/1
Or you could manipulate the spool directory and let asterisk send the notify itself.
Asterisk 11 doesn’t really have a good mechanism for doing this. As mentioned you can try to craft the NOTIFY yourself or coerce app_voicemail into doing it as a result of manipulation.
In 13 and above there’s an external MWI module for exactly this purpose. It replaces app_voicemail and allows external manipulation of MWI, one such method being through AMI[1] or if you prefer through the Asterisk REST interface[2].
[1] wiki.asterisk.org/wiki/display/ … _MWIUpdate
[2] wiki.asterisk.org/wiki/display/ … s+REST+API