Browse code

modules/presence_xml: fixed issue with parsing some pres-rules documents

- pres-rules that contain external links in a <conditions /> node don't
have to have <identity /> nodes in the <conditions /> node.
- Kamailio returns an error when it finds a <conditions /> node with
no <identity /> node inside it.
- Kamailio doesn't support external links, but it should skip over
the <conditions /> nodes that contain them rather than return
an error as later <conditions /> nodes may contain entries it can
work with.

Peter Dunkley authored on 24/04/2013 21:01:59
Showing 1 changed files
... ...
@@ -308,8 +308,8 @@ xmlNodePtr get_rule_node(subs_t* subs, xmlDocPtr xcap_tree )
308 308
 		identity_node = xmlNodeGetChildByName(cond_node, "identity");
309 309
 		if(identity_node == NULL)
310 310
 		{
311
-			LM_ERR("didn't find identity tag\n");
312
-			goto error;
311
+			LM_WARN("didn't find identity tag\n");
312
+			continue;
313 313
 		}	
314 314
 		
315 315
 		iden_child= xmlNodeGetChildByName(identity_node, "one");