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
mr13.3.1
Donat Zenichev 2 years ago
parent aa84add84f
commit b10e7042d3

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

Loading…
Cancel
Save