Change in osmo-ttcn3-hacks[master]: gbproxy: Unregister IMSI from BSSGP before termination of ConnHdlr

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/.

laforge gerrit-no-reply at lists.osmocom.org
Sat Jan 16 14:22:29 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22238 )


Change subject: gbproxy: Unregister IMSI from BSSGP before termination of ConnHdlr
......................................................................

gbproxy: Unregister IMSI from BSSGP before termination of ConnHdlr

Otherwise we may run into problems where the BSSGP_Emulation still
has references to longer existing components in its ClientTable.

Change-Id: Iee54e93e6ae1b3e40f502d5ba2499e9eb03bf203
---
M gbproxy/GBProxy_Tests.ttcn
1 file changed, 12 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/38/22238/1

diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn
index caf4c66..6141f6a 100644
--- a/gbproxy/GBProxy_Tests.ttcn
+++ b/gbproxy/GBProxy_Tests.ttcn
@@ -713,6 +713,18 @@
 
 	/* call the user-supplied test case function */
 	fn.apply(id);
+
+	for (i := 0; i < NUM_SGSN; i := i+1) {
+		if (SGSN_PROC[i].checkstate("Connected")) {
+			f_client_unregister(g_pars.imsi, SGSN_PROC[i])
+		}
+	}
+
+	for (i := 0; i < NUM_PCU; i := i+1) {
+		if (PCU_PROC[i].checkstate("Connected")) {
+			f_client_unregister(g_pars.imsi, PCU_PROC[i])
+		}
+	}
 }
 
 private function f_client_register(hexstring imsi, OCT4 tlli, BSSGP_PROC_PT PT)

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22238
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Iee54e93e6ae1b3e40f502d5ba2499e9eb03bf203
Gerrit-Change-Number: 22238
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210116/d1b2f643/attachment.htm>


More information about the gerrit-log mailing list