From 1d12519d0b34be9ff805643c6d09603081ab16d7 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 5 Jul 2011 15:29:13 -0500 Subject: [PATCH] only parse messages from channel_ready when its a session calling channel ready on itself not when another thread calls it --- src/switch_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_channel.c b/src/switch_channel.c index d733fdebca..0d25d4d4cc 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -1723,7 +1723,7 @@ SWITCH_DECLARE(int) switch_channel_test_ready(switch_channel_t *channel, switch_ } if (ret) { - if (!switch_channel_test_flag(channel, CF_LEG_HOLDING)) { + if (!switch_channel_test_flag(channel, CF_LEG_HOLDING) && switch_core_session_in_thread(channel->session)) { switch_ivr_parse_all_events(channel->session); } }