reneg = 0;
}
+ if (sdp_type == SDP_TYPE_RESPONSE && smh->num_negotiated_codecs) {
+ /* response to re-invite or update, only negotiated codecs are valid */
+ reneg = 0;
+ }
+
+
if (!reneg && smh->num_negotiated_codecs) {
codec_array = smh->negotiated_codecs;
total_codecs = smh->num_negotiated_codecs;
a_engine->codec_negotiated = 0;
v_engine->codec_negotiated = 0;
+ smh->num_negotiated_codecs = 0;
switch_channel_clear_flag(session->channel, CF_VIDEO_POSSIBLE);
switch_core_media_prepare_codecs(session, SWITCH_TRUE);
switch_core_media_check_video_codecs(session);