TT#21101 add CRLF to as-feature-event NOTIFY to satisfy Polycom

Change-Id: I414d8f702cfb76a2feef61f8d2d3cbf97e977ff6
(cherry picked from commit 1ecfa5ec54)
changes/15/15315/5
Irina Peshinskaya 8 years ago committed by Andrew Pogrebennyk
parent 3890714cf2
commit cf4d136247

@ -51,3 +51,4 @@ sipwise/pv_trans_eval_uri.patch
sipwise/rtpengine-mos-stats.patch
sipwise/openssl-pthreads-cleanup.patch
sipwise/presence_dfks.patch
sipwise/presence_dfks_add_crlf_xml.patch

@ -0,0 +1,14 @@
--- a/modules/presence_dfks/add_events.c
+++ b/modules/presence_dfks/add_events.c
@@ -16,9 +16,9 @@ static str pu_415_rpl = str_init("Unsup
static str unk_dev = str_init("<notKnown/>");
static str content_type =str_init("application/x-as-feature-event+xml");
// -4
-static str dnd_xml = str_init("<?xml version='1.0' encoding='ISO-8859-1'?><DoNotDisturbEvent><device>%s</device><doNotDisturbOn>%s</doNotDisturbOn></DoNotDisturbEvent>");
+static str dnd_xml = str_init("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n<DoNotDisturbEvent xmlns=\"http://www.ecma-international.org/standards/ecma-323/csta/ed3\">\n<device>%s</device>\n<doNotDisturbOn>%s</doNotDisturbOn>\n</DoNotDisturbEvent>\n\r\n");
// -8
-static str fwd_xml = str_init("<?xml version='1.0' encoding='ISO-8859-1'?><ForwardingEvent><device>%s</device><forwardingType>%s</forwardingType><forwardStatus>%s</forwardStatus><forwardTo>%s</forwardTo></ForwardingEvent>");
+static str fwd_xml = str_init("<?xml version='1.0' encoding='ISO-8859-1'?><ForwardingEvent xmlns=\"http://www.ecma-international.org/standards/ecma-323/csta/ed3\">\n<device>%s</device>\n<forwardingType>%s</forwardingType>\n<forwardStatus>%s</forwardStatus>\n<forwardTo>%s</forwardTo>\n</ForwardingEvent>\n\r\n");
int dfks_add_events(void)
{
Loading…
Cancel
Save