From 1576530c3e3283cb31bbaf8cb164b49f987f5653 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 27 Nov 2008 02:41:08 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10555 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_channel.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/switch_channel.c b/src/switch_channel.c index 90383b4fe4..21d28f0958 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -1688,6 +1688,15 @@ SWITCH_DECLARE(switch_status_t) switch_channel_perform_mark_answered(switch_chan switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s execute on answer: %s(%s)", channel->name, app, switch_str_nil(arg)); switch_core_session_execute_application(channel->session, app, arg); } + + + if (switch_channel_media_ready(channel)) { + switch_core_session_message_t msg; + msg.message_id = SWITCH_MESSAGE_INDICATE_AUDIO_SYNC; + msg.from = channel->name; + switch_core_session_receive_message(channel->session, &msg); + } + return SWITCH_STATUS_SUCCESS; }