Merge pull request #230 in FS/freeswitch from bugfix/FS-7405 to master

* commit 'a4ef9d6ba3d210cb0589342a0e059cf9bca98ae7':
  FS-7405: if all is required don't pass if total ne pass
This commit is contained in:
Mike Jerris 2015-06-01 13:25:47 -05:00
commit 89f838e020
1 changed files with 6 additions and 0 deletions

View File

@ -370,6 +370,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);