From cad68d53f5d449b7601b1ef254e443651fc12c3b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 5 Jul 2011 11:05:28 -0500 Subject: [PATCH] don't parse events in channel_ready during hold --- src/switch_channel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/switch_channel.c b/src/switch_channel.c index c818496bb9..d733fdebca 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -1723,7 +1723,9 @@ SWITCH_DECLARE(int) switch_channel_test_ready(switch_channel_t *channel, switch_ } if (ret) { - switch_ivr_parse_all_events(channel->session); + if (!switch_channel_test_flag(channel, CF_LEG_HOLDING)) { + switch_ivr_parse_all_events(channel->session); + } } return ret;