From 22d8994325038635d4e41457bf4f40e8e7fffa86 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 28 Jun 2011 15:06:48 -0500 Subject: [PATCH] avoid recursion loop in parse_all_events vs channel_ready --- src/switch_ivr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 6193145f12..e292b2c4b4 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -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;