From b10e7042d39c8b52986298bde90b6c455e898419 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Fri, 21 Feb 2025 10:32:50 +0100 Subject: [PATCH] MT#61912 OA: onReplyOut, ignore SDP only for OA_OfferSent Ignore SDP repeated in 183 and 200OK messages in the late offer/answer, but only for the `OA_OfferSent` OA state. Change-Id: I136ad02182685d0158e2c7c4eee53833cd8e00f4 --- core/AmOfferAnswer.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/AmOfferAnswer.cpp b/core/AmOfferAnswer.cpp index 5cf913ce..0414a3ff 100644 --- a/core/AmOfferAnswer.cpp +++ b/core/AmOfferAnswer.cpp @@ -439,11 +439,9 @@ int AmOfferAnswer::onReplyOut(AmSipReply& reply, int &flags, AmMimeBody &ret_bod } if (reply.cseq_method == SIP_METH_INVITE && reply.code < 300) { - /* ignore SDP repeated in 1xx and 2xx replies (183, 180, ... 2xx) */ - if (has_sdp && - (state == OA_Completed || state == OA_OfferSent) && - reply.cseq == cseq) - { + /* ignore SDP repeated in 1xx and 2xx replies (183, 180, ... 2xx) + in late offer/answer */ + if (has_sdp && (state == OA_OfferSent) && reply.cseq == cseq) { has_sdp = false; DBG("Now has_sdp has been reset to false.\n"); }