From 1469e0669fc2fc507fbd18f82508c50813dba0e9 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 25 Feb 2026 08:10:48 -0400 Subject: [PATCH] MT#55283 also use offered_codecs for the answerer Closes #2073 Change-Id: I1f9a1576377c21eedd441a3a3f06657384fac32c --- daemon/call.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index e63849204..d48c38de6 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2529,6 +2529,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))) @@ -2539,6 +2540,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)