MT#55283 also use offered_codecs for the answerer

Closes #2073

Change-Id: I1f9a1576377c21eedd441a3a3f06657384fac32c
(cherry picked from commit 1469e0669f)
mr14.1
Richard Fuchs 2 months ago
parent c3f09dca00
commit f71ed24221

@ -2530,6 +2530,7 @@ static void codecs_offer(struct call_media *media, struct call_media *other_medi
// keep a copy of the final list of what was offered
codec_store_copy(&other_media->offered_codecs, &other_media->codecs);
codec_store_copy(&media->offered_codecs, &media->codecs);
}
__attribute__((nonnull(1, 2, 3, 4)))
@ -2540,6 +2541,9 @@ static void codecs_answer(struct call_media *media, struct call_media *other_med
STR_FMT(&other_media->monologue->tag),
other_media->index);
// reset to codecs that were offered
codec_store_copy(&other_media->codecs, &other_media->offered_codecs);
const struct codec_store *answer_cs = &media->offered_codecs;
// don't do codec answer for a rejected media section
if (other_media->streams.length == 0)

Loading…
Cancel
Save