]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
change ready to up in this case
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 26 Mar 2013 21:37:47 +0000 (16:37 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 26 Mar 2013 21:37:47 +0000 (16:37 -0500)
src/switch_ivr_bridge.c

index f4bf8ec6561fea8986ee8679d8b85284708be963..7a20f87b5c5a87197e2a5d636dd5f9174bbeff97 100644 (file)
@@ -253,7 +253,7 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
                switch_codec_implementation_t read_impl = { 0 };
                switch_core_session_get_read_impl(session_a, &read_impl);
 
-               if (!switch_channel_media_ready(chan_a)) {
+               if (!switch_channel_media_up(chan_a)) {
                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session_a), SWITCH_LOG_ERROR, "Channel has no media!\n");
                        goto end_of_bridge_loop;
                }