FS-5549 regression

This commit is contained in:
Anthony Minessale 2013-09-30 22:11:36 +05:00
parent d4c56db14d
commit 78e04cd322
1 changed files with 3 additions and 1 deletions

View File

@ -1108,7 +1108,9 @@ static switch_status_t signal_bridge_on_hangup(switch_core_session_t *session)
}
switch_channel_hangup(other_channel, switch_channel_get_cause(channel));
} else {
switch_channel_handle_cause(other_channel, switch_channel_get_cause(channel));
if (!switch_channel_test_flag(channel, CF_ANSWERED)) {
switch_channel_handle_cause(other_channel, switch_channel_get_cause(channel));
}
switch_channel_set_state(other_channel, CS_EXECUTE);
}
} else {