From: Anthony Minessale Date: Tue, 13 Aug 2013 21:13:49 +0000 (+0500) Subject: FS-5453 --resolve X-Git-Tag: v1.5.5~45^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94b1b6218cda026827dd76f3a026a2890b0e9fed;p=thirdparty%2Ffreeswitch.git FS-5453 --resolve --- diff --git a/src/mod/endpoints/mod_loopback/mod_loopback.c b/src/mod/endpoints/mod_loopback/mod_loopback.c index 105b96564a..41f5849655 100644 --- a/src/mod/endpoints/mod_loopback/mod_loopback.c +++ b/src/mod/endpoints/mod_loopback/mod_loopback.c @@ -458,10 +458,7 @@ static switch_status_t channel_on_execute(switch_core_session_t *session) if ((find_non_loopback_bridge(tech_pvt->other_session, &other_session, &other_uuid) == SWITCH_STATUS_SUCCESS)) { switch_channel_t *other_channel = switch_core_session_get_channel(other_session); - if (switch_channel_test_flag(other_channel, CF_BRIDGED)) { - /* Wait for real channel to be exchanging media */ - switch_channel_wait_for_state(other_channel, channel, CS_EXCHANGE_MEDIA); - } + switch_channel_wait_for_state_timeout(other_channel, CS_EXCHANGE_MEDIA, 5000); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_INFO, "BOWOUT Replacing loopback channel with real channel: %s\n", switch_channel_get_name(other_channel));