FS-3727 --resolve

This commit is contained in:
Anthony Minessale 2011-11-29 08:28:10 -06:00
parent eef4bb03d3
commit f41020a625
2 changed files with 4 additions and 4 deletions

View File

@ -1180,8 +1180,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses
const char *app, *data;
if (switch_channel_get_state(peer_channel) == CS_CONSUME_MEDIA) {
switch_channel_set_state(peer_channel, CS_RESET);
switch_channel_wait_for_state(peer_channel, caller_channel, CS_RESET);
switch_channel_set_state(peer_channel, CS_HIBERNATE);
switch_channel_wait_for_state(peer_channel, caller_channel, CS_HIBERNATE);
}
if (!switch_channel_ready(caller_channel)) {

View File

@ -3511,8 +3511,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
switch_channel_t *bchan = switch_core_session_get_channel(*bleg);
if (switch_channel_get_state(bchan) == CS_CONSUME_MEDIA) {
switch_channel_set_state(bchan, CS_RESET);
switch_channel_wait_for_state(bchan, caller_channel, CS_RESET);
switch_channel_set_state(bchan, CS_HIBERNATE);
switch_channel_wait_for_state(bchan, caller_channel, CS_HIBERNATE);
}
if (session && caller_channel) {