FS-5530 --resolve

This commit is contained in:
Anthony Minessale 2013-06-20 20:58:55 -05:00
parent f35ea43b38
commit e1b6d4d1be
1 changed files with 16 additions and 8 deletions

View File

@ -1542,8 +1542,15 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses
switch_ivr_park_session(session);
} else if ((var = switch_channel_get_variable(caller_channel, SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE))) {
transfer_after_bridge(session, var);
} else if (switch_channel_test_flag(peer_channel, CF_ANSWERED) &&
switch_true(switch_channel_get_variable(caller_channel, SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE))) {
} else {
const char *hup = switch_channel_get_variable(caller_channel, SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE);
int explicit = 0;
if (hup) {
explicit = !strcasecmp(hup, "explicit");
}
if (explicit || (switch_channel_test_flag(peer_channel, CF_ANSWERED) && switch_true(hup))) {
switch_call_cause_t cause = switch_channel_get_cause(peer_channel);
if (cause == SWITCH_CAUSE_NONE) {
cause = SWITCH_CAUSE_NORMAL_CLEARING;
@ -1556,6 +1563,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses
}
}
}
}
if (switch_channel_test_flag(caller_channel, CF_REDIRECT)) {
if (switch_channel_test_flag(caller_channel, CF_RESET)) {