parse events and messages in channel_ready
This commit is contained in:
parent
4962542b40
commit
94148095b8
|
@ -1693,8 +1693,6 @@ SWITCH_DECLARE(int) switch_channel_test_ready(switch_channel_t *channel, switch_
|
|||
|
||||
switch_assert(channel != NULL);
|
||||
|
||||
switch_ivr_parse_all_messages(channel->session);
|
||||
|
||||
if (check_media) {
|
||||
ret = ((switch_channel_test_flag(channel, CF_ANSWERED) ||
|
||||
switch_channel_test_flag(channel, CF_EARLY_MEDIA)) && !switch_channel_test_flag(channel, CF_PROXY_MODE) &&
|
||||
|
@ -1716,6 +1714,10 @@ SWITCH_DECLARE(int) switch_channel_test_ready(switch_channel_t *channel, switch_
|
|||
ret++;
|
||||
}
|
||||
|
||||
if (ret) {
|
||||
switch_ivr_parse_all_events(channel->session);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue