From a4ef9d6ba3d210cb0589342a0e059cf9bca98ae7 Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 1 Apr 2015 10:32:21 -0500 Subject: [PATCH] FS-7405: if all is required don't pass if total ne pass --- src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c index 71908b36f0..9fe1fbef42 100644 --- a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c +++ b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c @@ -380,6 +380,12 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t * if ((all && !fail) || (!all && pass)) { anti_action = SWITCH_FALSE; } + if (all && total != pass) { + proceed = 1; + pass = 0; + fail++; + anti_action = SWITCH_TRUE; + } } switch_safe_free(field_expanded);