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"); }