don't parse events in channel_ready during hold

This commit is contained in:
Anthony Minessale 2011-07-05 11:05:28 -05:00
parent 2e651c8fd0
commit cad68d53f5
1 changed files with 3 additions and 1 deletions

View File

@ -1723,8 +1723,10 @@ SWITCH_DECLARE(int) switch_channel_test_ready(switch_channel_t *channel, switch_
}
if (ret) {
if (!switch_channel_test_flag(channel, CF_LEG_HOLDING)) {
switch_ivr_parse_all_events(channel->session);
}
}
return ret;
}