提交 3a121a1b authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-3675 --resolve incorrect fix in 5dd46353

上级 6fc559ef
...@@ -3452,13 +3452,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess ...@@ -3452,13 +3452,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
if (status == SWITCH_STATUS_SUCCESS) { if (status == SWITCH_STATUS_SUCCESS) {
goto outer_for; goto outer_for;
} else { } else {
int ok = 0; int ok = 1;
if (fail_on_single_reject && check_reject) {
if (!switch_true(fail_on_single_reject_var)) {
ok = 1;
if (fail_on_single_reject && check_reject && !switch_true(fail_on_single_reject_var)) {
for (i = 0; i < and_argc; i++) { for (i = 0; i < and_argc; i++) {
switch_channel_t *pchannel; switch_channel_t *pchannel;
const char *cause_str; const char *cause_str;
...@@ -3466,8 +3462,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess ...@@ -3466,8 +3462,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
if (!originate_status[i].peer_session) { if (!originate_status[i].peer_session) {
continue; continue;
} }
pchannel = switch_core_session_get_channel(originate_status[i].peer_session); pchannel = switch_core_session_get_channel(originate_status[i].peer_session);
wait_for_cause(pchannel); wait_for_cause(pchannel);
if (switch_channel_down(pchannel)) { if (switch_channel_down(pchannel)) {
int neg, pos; int neg, pos;
...@@ -3488,9 +3486,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess ...@@ -3488,9 +3486,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
} }
} }
} }
}
if (ok) { if (!ok) {
goto outer_for; goto outer_for;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论