Change in osmo-ttcn3-hacks[master]: MSC/GSUP: make session ID for MT SS/USSD configurable

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

fixeria gerrit-no-reply at lists.osmocom.org
Tue Jan 7 22:17:06 UTC 2020


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


Change subject: MSC/GSUP: make session ID for MT SS/USSD configurable
......................................................................

MSC/GSUP: make session ID for MT SS/USSD configurable

This would allow to run multiple SS/USSD transactions in parallel.

Change-Id: I326b5e47f4c1e9f9209efa64c143c3dc64132edb
---
M msc/BSC_ConnectionHandler.ttcn
M msc/MSC_Tests.ttcn
2 files changed, 9 insertions(+), 7 deletions(-)



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

diff --git a/msc/BSC_ConnectionHandler.ttcn b/msc/BSC_ConnectionHandler.ttcn
index eae5e56..c21bcd9 100644
--- a/msc/BSC_ConnectionHandler.ttcn
+++ b/msc/BSC_ConnectionHandler.ttcn
@@ -97,6 +97,7 @@
 	boolean mm_info,
 	boolean sgsap_enable,
 	boolean gsup_enable,
+	OCT4 gsup_sid,
 	integer ran_idx,
 	boolean use_umts_aka,
 	boolean ran_is_geran,
diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index c2a5bbb..508acdd 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -362,7 +362,7 @@
 
 /* FIXME: move into BSC_ConnectionHandler? */
 function f_init_pars(integer imsi_suffix, boolean sgsap := false, boolean gsup := true, integer ran_idx := 0,
-		     boolean ran_is_geran := true, boolean use_osmux := false)
+		     boolean ran_is_geran := true, boolean use_osmux := false, OCT4 gsup_sid := '20000101'O)
 runs on MTC_CT return BSC_ConnHdlrPars {
 	var BSC_ConnHdlrNetworkPars net_pars := {
 		kc_support := '0A'O,	/* A5/1 and A5/3 enabled */
@@ -394,6 +394,7 @@
 		mm_info := mp_mm_info,
 		sgsap_enable := sgsap,
 		gsup_enable := gsup,
+		gsup_sid := gsup_sid,
 		ran_idx := ran_idx,
 		use_umts_aka := false,
 		ran_is_geran := ran_is_geran,
@@ -3009,7 +3010,7 @@
 	/* Compose HLR -> MSC GSUP message */
 	var template (value) GSUP_PDU gsup_req := ts_GSUP_PROC_SS_REQ(
 		imsi := g_pars.imsi,
-		sid := '20000101'O,
+		sid := g_pars.gsup_sid,
 		state := OSMO_GSUP_SESSION_STATE_BEGIN,
 		ss := valueof(facility_req)
 	);
@@ -3046,7 +3047,7 @@
 	/* Compose expected MSC -> HLR GSUP message */
 	var template GSUP_PDU gsup_rsp := tr_GSUP_PROC_SS_REQ(
 		imsi := g_pars.imsi,
-		sid := '20000101'O,
+		sid := g_pars.gsup_sid,
 		state := OSMO_GSUP_SESSION_STATE_CONTINUE,
 		ss := valueof(facility_rsp)
 	);
@@ -3066,7 +3067,7 @@
 	/* Compose MSC -> HLR GSUP message */
 	var template GSUP_PDU gsup_term := ts_GSUP_PROC_SS_REQ(
 		imsi := g_pars.imsi,
-		sid := '20000101'O,
+		sid := g_pars.gsup_sid,
 		state := OSMO_GSUP_SESSION_STATE_END
 	);
 
@@ -3228,7 +3229,7 @@
 	/* Compose HLR -> MSC GSUP message */
 	var template (value) GSUP_PDU gsup_req := ts_GSUP_PROC_SS_REQ(
 		imsi := g_pars.imsi,
-		sid := '20000101'O,
+		sid := g_pars.gsup_sid,
 		state := OSMO_GSUP_SESSION_STATE_BEGIN,
 		ss := valueof(facility_req)
 	);
@@ -3248,7 +3249,7 @@
 	/* Compose expected MSC -> HLR GSUP message */
 	var template GSUP_PDU gsup_rsp := tr_GSUP_PROC_SS_REQ(
 		imsi := g_pars.imsi,
-		sid := '20000101'O,
+		sid := g_pars.gsup_sid,
 		state := OSMO_GSUP_SESSION_STATE_CONTINUE,
 		ss := valueof(facility_rsp)
 	);
@@ -3267,7 +3268,7 @@
 	/* Compose MSC -> HLR GSUP message */
 	var template GSUP_PDU gsup_term := ts_GSUP_PROC_SS_REQ(
 		imsi := g_pars.imsi,
-		sid := '20000101'O,
+		sid := g_pars.gsup_sid,
 		state := OSMO_GSUP_SESSION_STATE_END
 	);
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/16765
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: I326b5e47f4c1e9f9209efa64c143c3dc64132edb
Gerrit-Change-Number: 16765
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200107/385b4451/attachment.htm>


More information about the gerrit-log mailing list