[OpenSIPS-Devel] empty publish results in invalid notify body
Juha Heinanen
jh at tutpro.com
Thu Dec 30 12:55:10 CET 2010
Juha Heinanen writes:
> <?xml version="1.0"?>
> <presence entity="sip:test at test.fi"><tuple
> id="t5374"><status><basic>closed</basic></status></tuple></presence>
i tried to read presentity.c code and if the above doc is created by
build_offline_presence function, it tried to add the missing stuff to
the doc:
xmlNewProp(root_node, BAD_CAST "xmlns",
BAD_CAST "urn:ietf:params:xml:ns:pidf");
xmlNewProp(root_node, BAD_CAST "xmlns:dm",
BAD_CAST "urn:ietf:params:xml:ns:pidf:data-model");
xmlNewProp(root_node, BAD_CAST "xmlns:rpid",
BAD_CAST "urn:ietf:params:xml:ns:pidf:rpid" );
xmlNewProp(root_node, BAD_CAST "xmlns:c",
BAD_CAST "urn:ietf:params:xml:ns:pidf:cipid");
so far i have not been able to figure out, why nothing happens.
-- juha
More information about the Devel
mailing list