From f7210b2402488ec8f9be97cc79921fa605bbb7a4 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 3 Oct 2014 18:43:18 -0500 Subject: [PATCH] some more changes relates to new bypass media controls --- src/switch_core_media.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 852cdfc4bc..73d404cfa9 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -7872,6 +7872,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_receive_message(switch_core_se case SWITCH_MESSAGE_INDICATE_MEDIA: { + + a_engine->codec_negotiated = 0; + v_engine->codec_negotiated = 0; + if (session->track_duration) { switch_core_session_enable_heartbeat(session, session->track_duration); } @@ -7886,9 +7890,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_receive_message(switch_core_se switch_channel_set_flag(session->channel, CF_PROXY_MODE); - a_engine->codec_negotiated = 0; - v_engine->codec_negotiated = 0; - switch_core_media_set_local_sdp(session, NULL, SWITCH_FALSE); if (switch_true(switch_channel_get_variable(session->channel, "bypass_keep_codec"))) { @@ -8966,7 +8967,7 @@ SWITCH_DECLARE(char *) switch_core_media_filter_sdp(const char *sdp_str, const c } - len = strlen(sdp_str) + 1; + len = strlen(sdp_str) + 2; new_sdp = malloc(len); o = new_sdp; i = sdp_str;