mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 05:18:31 +00:00
FS-7405: if all is required don't pass if total ne pass
This commit is contained in:
1 parent
3c2afc6a2c
commit
a4ef9d6ba3
1 file changed
+6
@@ -380,6 +380,12 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
|
|||||||
if ((all && !fail) || (!all && pass)) {
|
if ((all && !fail) || (!all && pass)) {
|
||||||
anti_action = SWITCH_FALSE;
|
anti_action = SWITCH_FALSE;
|
||||||
}
|
}
|
||||||
|
if (all && total != pass) {
|
||||||
|
proceed = 1;
|
||||||
|
pass = 0;
|
||||||
|
fail++;
|
||||||
|
anti_action = SWITCH_TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_safe_free(field_expanded);
|
switch_safe_free(field_expanded);
|
||||||
|
|||||||
Reference in new issue
Block a user