aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith <keith@rhizomatica.org>2019-08-01 15:18:56 +0200
committerKeith <keith@rhizomatica.org>2019-08-05 19:08:42 +0200
commitab5b4311b0851dd4d1f0b4fba3f04ba1b95ed377 (patch)
treeef5df51148435a1a455448b5d3252045bb75958f
parentba7450cf26883d1ef4ff576618bafdd50a18f805 (diff)
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
-rw-r--r--src/sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sip.c b/src/sip.c
index 4e011bd..0179226 100644
--- a/src/sip.c
+++ b/src/sip.c
@@ -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);
}