Change in osmo-sip-connector[master]: MNCC: Do not continue with B leg if A leg is cancelled.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Keith Whyte gerrit-no-reply at lists.osmocom.org
Tue Oct 2 12:31:08 UTC 2018


Keith Whyte has uploaded this change for review. ( https://gerrit.osmocom.org/11194


Change subject: MNCC: Do not continue with B leg if A leg is cancelled.
......................................................................

MNCC: Do not continue with B leg if A leg is cancelled.

In case we receive MNCC_RTP_CREATE after MNCC_DISC_IND,
check if the call is already marked in_release in check_rtp_create()
and if so, release instead of proceeding with the B leg.

Change-Id: I0eca9a741f7924c2fc32c503dd1a0fc083f94f37
Related: OS#3518
---
M src/mncc.c
1 file changed, 5 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sip-connector refs/changes/94/11194/1

diff --git a/src/mncc.c b/src/mncc.c
index 976a671..5b06fbe 100644
--- a/src/mncc.c
+++ b/src/mncc.c
@@ -378,6 +378,11 @@
 		LOGP(DMNCC, LOGL_ERROR, "call(%u) can not be found\n", rtp->callref);
 		return mncc_send(conn, MNCC_REJ_REQ, rtp->callref);
 	}
+	if (leg->base.in_release) {
+		LOGP(DMNCC, LOGL_ERROR, "call(%u) is already in release!\n", rtp->callref);
+		mncc_leg_release(leg);
+		return;
+	}
 
 	/* extract information about where the RTP is */
 	leg->base.ip = rtp->ip;

-- 
To view, visit https://gerrit.osmocom.org/11194
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sip-connector
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0eca9a741f7924c2fc32c503dd1a0fc083f94f37
Gerrit-Change-Number: 11194
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Whyte <keith at rhizomatica.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181002/6a3ecc8a/attachment.htm>


More information about the gerrit-log mailing list