[PATCH] osmo-ttcn3-hacks[master]: msc: Store CM2/CM3 in g_pars, so it can be modified

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

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Jan 22 02:01:47 UTC 2018


Review at  https://gerrit.osmocom.org/5969

msc: Store CM2/CM3 in g_pars, so it can be modified

Change-Id: I726d851f45379b3efdb5ab62ea8f196cc0e41cc5
---
M msc_tests/BSC_ConnectionHandler.ttcn
M msc_tests/MSC_Tests.ttcn
2 files changed, 7 insertions(+), 3 deletions(-)


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

diff --git a/msc_tests/BSC_ConnectionHandler.ttcn b/msc_tests/BSC_ConnectionHandler.ttcn
index a404ed3..402448e 100644
--- a/msc_tests/BSC_ConnectionHandler.ttcn
+++ b/msc_tests/BSC_ConnectionHandler.ttcn
@@ -29,7 +29,9 @@
 	SCCP_PAR_Address sccp_addr_peer,
 	BSSMAP_IE_CellIdentifier cell_id,
 	hexstring imsi,
-	hexstring msisdn
+	hexstring msisdn,
+	BSSMAP_IE_ClassmarkInformationType2 cm2,
+	BSSMAP_IE_ClassmarkInformationType3 cm3 optional
 };
 
 
@@ -142,7 +144,7 @@
 	/* Send BSSAP_Conn_Req with COMPL L3 INFO to MSC */
 	f_bssap_compl_l3(l3_lu);
 
-	BSSAP.send(ts_BSSMAP_ClassmarkUpd);
+	BSSAP.send(ts_BSSMAP_ClassmarkUpd(g_pars.cm2, g_pars.cm3));
 
 	if (expect_auth) {
 		/* FIXME */
diff --git a/msc_tests/MSC_Tests.ttcn b/msc_tests/MSC_Tests.ttcn
index e336e9a..0acfdb2 100644
--- a/msc_tests/MSC_Tests.ttcn
+++ b/msc_tests/MSC_Tests.ttcn
@@ -308,7 +308,9 @@
 		sccp_addr_peer := g_sccp_addr_peer,
 		cell_id := valueof(ts_CellId_CGI('262'H, '042'H, 23, 42)),
 		imsi := f_gen_imsi('26242'H, imsi_suffix),
-		msisdn := f_gen_msisdn('491239999'H, imsi_suffix)
+		msisdn := f_gen_msisdn('491239999'H, imsi_suffix),
+		cm2 := valueof(ts_CM2_default),
+		cm3 := omit
 	};
 
 	vc_conn := BSC_ConnHdlr.create(id);

-- 
To view, visit https://gerrit.osmocom.org/5969
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I726d851f45379b3efdb5ab62ea8f196cc0e41cc5
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list