How to send MWI

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

How to send MWI

Postby nrones » Wed Jun 03, 2015 1:47 am

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
nrones
Newsterisk
 
Posts: 1
Joined: Wed Jun 03, 2015 12:57 am

Re: How to send MWI

Postby david55 » Wed Jun 03, 2015 3:12 pm

Developer questions go on the developer mailing list or IRC channels.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: How to send MWI

Postby johnkiniston » Wed Jun 03, 2015 4:11 pm

nrones wrote: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


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.

Code: Select all
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.
johnkiniston
Oldsterisk
 
Posts: 53
Joined: Thu Nov 15, 2012 6:50 pm
Location: Tucson, AZ

Re: How to send MWI

Postby jcolp » Wed Jun 03, 2015 4:36 pm

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] https://wiki.asterisk.org/wiki/display/ ... _MWIUpdate
[2] https://wiki.asterisk.org/wiki/display/ ... s+REST+API
Joshua Colp
Digium, Inc. | Senior Software Developer
jcolp
Oldsterisk
 
Posts: 248
Joined: Tue May 19, 2015 6:59 am


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 1 guest