Summary: | ASTERISK-23283: SipNotify Action over AMI do not allow multiline content with \n | ||
Reporter: | Peter Katzmann (pk16208) | Labels: | |
Date Opened: | 2014-02-12 09:00:52.000-0600 | Date Closed: | 2014-02-13 08:31:38.000-0600 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Core/ManagerInterface |
Versions: | 11.7.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | ubuntu | Attachments: | |
Description: | When i try to generate a SIPnotify action over AMI only single line content is transfered.
For Example when you try t send a MWI info you need several line content but only the the content till \n will be transfered. {noformat} action: SipNotify actionid: 601901529_11# channel: sip/2205 variable: Event=message-summary variable: Content-Type=application/simple-message-summary variable: Content=Messages-Waiting: yes Message-Account: sip:*97@130.10.20.217 Voice-Message: 13/3 (0/0) NOTIFY sip:2205@10.0.0.155:5060;transport=udp SIP/2.0 Via: SIP/2.0/UDP 130.10.20.217:5060;branch=z9hG4bK15b96777 Max-Forwards: 70 From: "asterisk" <sip:asterisk@130.10.20.217>;tag=as73e0337b To: <sip:2205@10.0.0.155:5060;transport=udp> Contact: <sip:asterisk@130.10.20.217:5060> Call-ID: 53400acc2a94506548bc06373c3a36ef@130.10.20.217:5060 CSeq: 102 NOTIFY User-Agent: asteriskdev1 Date: Wed, 12 Feb 2014 14:05:55 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH Supported: replaces, timer Subscription-State: terminated Content-Type: application/simple-message-summary Event: message-summary Content-Length: 22 Messages-Waiting: yes --- {noformat} | ||
Comments: | By: Michael L. Young (elguero) 2014-02-12 12:26:27.314-0600 I think you may have the syntax wrong. {noformat} variable: Content=Messages-Waiting: yes Message-Account: sip:*97@130.10.20.217 Voice-Message: 13/3 (0/0) {noformat} I think it should be like this, {noformat} variable: Content=Messages-Waiting: yes variable: Content=Message-Account: sip:*97@130.10.20.217 variable: Content=Voice-Message: 13/3 (0/0) {noformat} From https://wiki.asterisk.org/wiki/display/AST/ManagerAction_SIPnotify {quote} All parameters for this event must be specified in the body of this request via multiple Variable: name=value sequences. {quote} Give that a try and see if that takes care of your issue. Thanks By: Peter Katzmann (pk16208) 2014-02-13 04:05:31.462-0600 Ok, due to your hint and review it works out that the bug is inside the asteriskjava library. So we can close here and i have to redirect it to asteriskjava |