[Freeswitch-svn] [commit] r9312 - freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml

Freeswitch SVN anthm at freeswitch.org
Sat Aug 16 11:57:07 EDT 2008


Author: anthm
Date: Sat Aug 16 11:57:07 2008
New Revision: 9312

Modified:
   freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c

Log:
fail call on extensions with nested conditions

Modified: freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c
==============================================================================
--- freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c	(original)
+++ freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c	Sat Aug 16 11:57:07 2008
@@ -64,6 +64,12 @@
 		switch_safe_free(field_expanded);
 		switch_safe_free(expression_expanded);
 
+		if (switch_xml_child(xcond, "condition")) {
+			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Nested conditions are not allowed!\n");
+			proceed = 1;
+			goto done;
+		}
+
 		field = (char *) switch_xml_attr(xcond, "field");
 
 		if ((xexpression = switch_xml_child(xcond, "expression"))) {



More information about the Freeswitch-svn mailing list