[OpenSIPS-Devel] empty publish results in invalid notify body

Anca Vamanu anca at opensips.org
Mon Jan 3 11:59:09 CET 2011


Hi Juha,

Thanks, I am going to commit this and also check if there are other 
places where the namespace is not specified.

Regards,

-- 
Anca Vamanu
www.voice-system.ro



On 12/31/2010 12:01 PM, Juha Heinanen wrote:
> 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