don't parse events in channel_ready during hold

This commit is contained in:
Anthony Minessale committed 2011-07-05 11:05:33 -05:00
1 parent 2e651c8fd0
commit cad68d53f5
1 file changed
+3 -1
+3 -1
View File
@@ -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;