forked from Mirrors/freeswitch
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:
parent
18e527f2a1
commit
fda8c44ec2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user