goto end;
case SWITCH_MESSAGE_INDICATE_AUDIO_SYNC:
if (switch_rtp_ready(a_engine->rtp_session)) {
+ switch_rtp_reset_jb(a_engine->rtp_session);
rtp_flush_read_buffer(a_engine->rtp_session, SWITCH_RTP_FLUSH_ONCE);
- //switch_rtp_reset_jb(a_engine->rtp_session);
}
goto end;
case SWITCH_MESSAGE_INDICATE_VIDEO_SYNC:
if (switch_rtp_ready(v_engine->rtp_session)) {
+ switch_rtp_reset_jb(v_engine->rtp_session);
switch_rtp_flush(v_engine->rtp_session);
- //switch_rtp_reset_jb(v_engine->rtp_session);
}
goto end;
case SWITCH_MESSAGE_INDICATE_3P_MEDIA:
switch_channel_clear_flag(session->channel, CF_RESET);
switch_core_session_video_reset(session);
-
+ switch_channel_audio_sync(session->channel);
+ switch_channel_video_sync(session->channel);
+
if ((extension = switch_channel_get_caller_extension(session->channel)) == 0) {
switch_channel_hangup(session->channel, SWITCH_CAUSE_NORMAL_CLEARING);
return;