fix early media issue related to group_confirm_file

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10949 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-12-26 17:09:09 +00:00
parent 18e527f2a1
commit fda8c44ec2

View File

@ -39,6 +39,12 @@ static switch_status_t originate_on_consume_media_transmit(switch_core_session_t
{
switch_channel_t *channel = switch_core_session_get_channel(session);
if (!switch_channel_test_flag(channel, CF_PROXY_MODE)) {
while (switch_channel_get_state(channel) == CS_CONSUME_MEDIA && !switch_channel_test_flag(channel, CF_TAGGED)) {
switch_ivr_sleep(session, 10, SWITCH_FALSE, NULL);
}
}
switch_channel_clear_state_handler(channel, &originate_state_handlers);
return SWITCH_STATUS_FALSE;