Asterisk 11 SIPnotify - set body

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Asterisk 11 SIPnotify - set body

Postby antioch1st » Sun Oct 05, 2014 12:56 pm

Hi All,
When using Asterisk 11 SIPnotify AMI, is there anyway to set the body in the SIP notify message.

See:https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerAction_SIPnotify

Like so many others, I would like to use it to send MWI.....

Thanks,
-Taylor
antioch1st
Newsterisk
 
Posts: 4
Joined: Mon Jul 13, 2009 4:18 pm

Re: Asterisk 11 SIPnotify - set body

Postby antioch1st » Sun Oct 05, 2014 2:46 pm

After looking at source code I worked this out - did not see this documented, but I pry just missed it.

Setting the Variable "Content", sets the body.

So to send MWI using SIPnotify, looks something like this:

$body1="Messages-Waiting: yes";
$body2="Voice-Message: 4/8";

"ActionID"=>"123141",
"Channel"=> "asdfasasg1231",
"Variable"=>"Event=message-summary,Content-Type=application/simple-message-summary,Content=$body1,Content=$body2"

- Sorry I had the above syntax wrong, just fixed it: I did a write up this issue here:http://www.ringroost.com/blog/asterisk-ami-send-mwi-using-sip-notify/
antioch1st
Newsterisk
 
Posts: 4
Joined: Mon Jul 13, 2009 4:18 pm


Return to Asterisk Support

Who is online

Users browsing this forum: Majestic-12 [Bot], MSN [Bot] and 1 guest