]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7405: if all is required don't pass if total ne pass
authorBrian West <brian@freeswitch.org>
Wed, 1 Apr 2015 15:32:21 +0000 (10:32 -0500)
committerBrian West <brian@freeswitch.org>
Wed, 1 Apr 2015 15:32:21 +0000 (10:32 -0500)
src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c

index 71908b36f02b18c689993f7139f005059ed25098..9fe1fbef42e701fc8fcb994fedbcd5ccadac24c5 100644 (file)
@@ -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);