[OpenSIPS-Devel] empty publish results in invalid notify body
Juha Heinanen
jh at tutpro.com
Fri Dec 31 11:01:15 CET 2010
Juha Heinanen writes:
> perhaps the bug is in presence_xml/notify_body.c instead. i'll make
> some experiments.
here is diff that works for me. could someone check and commit it.
-- juha
*** /usr/src/orig/opensips/branches/1.6/modules/presence_xml/notify_body.c 2010-12-28 15:48:35.000000000 +0200
--- notify_body.c 2010-12-31 11:51:32.000000000 +0200
***************
*** 713,718 ****
--- 713,721 ----
root_node->ns = NULL;
}
+ xmlNewProp(root_node, BAD_CAST "xmlns",
+ BAD_CAST "urn:ietf:params:xml:ns:pidf");
+
xmlDocSetRootElement(new_doc, root_node);
tuple_node= xmlCopyNode(tuple_node, 2);
More information about the Devel
mailing list