]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
avoid recursion loop in parse_all_events vs channel_ready
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 28 Jun 2011 20:06:48 +0000 (15:06 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 28 Jun 2011 20:06:48 +0000 (15:06 -0500)
src/switch_ivr.c

index 6193145f12e2651ce0702af2a1fd6e860265763e..e292b2c4b4455e963aeac8e6c4c98b8837498cee 100644 (file)
@@ -718,7 +718,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_all_events(switch_core_session_
        channel = switch_core_session_get_channel(session);
 
        if (!switch_channel_test_flag(channel, CF_PROXY_MODE) && switch_channel_test_flag(channel, CF_BLOCK_BROADCAST_UNTIL_MEDIA)) {
-               if (switch_channel_media_ready(channel)) {
+               if (switch_channel_media_up(channel)) {
                        switch_channel_clear_flag(channel, CF_BLOCK_BROADCAST_UNTIL_MEDIA);
                } else {
                        return SWITCH_STATUS_SUCCESS;