Only send update to MNCC if media info changed.

Do not send an MNCC_RTP_CONNECT as a result of a SIP re-INVITE,
unless the media connection information has changed.

Change-Id: I7c48300092a309e50a8fe091b30e395e7c72de9d
This commit is contained in:
Keith Whyte 2019-08-01 15:18:56 +02:00
parent ba7450cf26
commit ab5b4311b0
1 changed files with 2 additions and 2 deletions

View File

@ -224,9 +224,9 @@ static void sip_handle_reinvite(struct sip_call_leg *leg, nua_handle_t *nh, cons
LOGP(DSIP, LOGL_NOTICE, "Media IP:port in re-INVITE: (%s:%u)\n", inet_ntoa(net), leg->base.port);
if (ip != leg->base.ip || port != leg->base.port) {
LOGP(DSIP, LOGL_NOTICE, "re-INVITE changes media connection.\n");
if (other->update_rtp)
other->update_rtp(leg->base.call->remote);
}
if (other->update_rtp)
other->update_rtp(leg->base.call->remote);
sdp = sdp_create_file(leg, other, sdp_sendrecv);
}