Change in osmo-ttcn3-hacks[master]: library/L3_Templates: remove tr_PAGING_REQ1_MI1_TMSI, use existing MI...

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
Mon Mar 30 07:49:26 UTC 2020


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


Change subject: library/L3_Templates: remove tr_PAGING_REQ1_MI1_TMSI, use existing MI templates
......................................................................

library/L3_Templates: remove tr_PAGING_REQ1_MI1_TMSI, use existing MI templates

Change-Id: Id35477ffc4a914e71100f129bbc4833b48ed5da4
---
M library/L3_Templates.ttcn
M pcu/PCU_Tests.ttcn
2 files changed, 4 insertions(+), 20 deletions(-)



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

diff --git a/library/L3_Templates.ttcn b/library/L3_Templates.ttcn
index 092026e..46cd1ac 100644
--- a/library/L3_Templates.ttcn
+++ b/library/L3_Templates.ttcn
@@ -381,22 +381,6 @@
 	}
 }
 
-/* Template for receiving a Paging Request Type1 message with a given TMSI in the first mobile identity. */
-template MobileIdentityLV tr_PAGING_REQ1_MI1_TMSI(octetstring tmsi) := {
-	lengthIndicator := 5,
-	mobileIdentityV := {
-		typeOfIdentity := '100'B,
-		oddEvenInd_identity := {
-			tmsi_ptmsi := {
-				oddevenIndicator := '0'B,
-				fillerDigit := '1111'B,
-				octets := tmsi
-			}
-		}
-	}
-
-}
-
 template PDU_ML3_NW_MS tr_PAGING_REQ2(template TMSIP_TMSI_V mi1 := ?,
 				      template TMSIP_TMSI_V mi2 := ?,
 				      template MobileIdentityTLV mi3 := *) := {
diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index 1c2b271..7ef3d0a 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -222,7 +222,7 @@
 	log("BSSGP successfully initialized");
 }
 
-function f_wait_paging_req_type1(hexstring expected_tmsi) runs on dummy_CT {
+function f_wait_paging_req_type1(template (present) MobileIdentityV mi) runs on dummy_CT {
 	var LAPDm_ph_data ph_data;
 	timer T := 5.0;
 
@@ -240,7 +240,7 @@
 			repeat;
 		}
 
-		if (match(pdu, tr_PAGING_REQ1(tr_PAGING_REQ1_MI1_TMSI(hex2oct(expected_tmsi))))) {
+		if (match(pdu, tr_PAGING_REQ1(tr_MI_LV(mi)))) {
 			setverdict(pass);
 		} else {
 			repeat;
@@ -268,12 +268,12 @@
 	/*
 	TODO: Paging by IMSI does not work yet because osmo-pcu does not copy IMSI into paging requests.
 	BSSGP_SIG[0].send(ts_BSSGP_PS_PAGING_IMSI(0, g_mmctx.imsi));
-	f_wait_paging_req_type1(hex2oct(g_mmctx.imsi));
+	f_wait_paging_req_type1(tr_MI_IMSI(g_mmctx.imsi));
 	*/
 
 	/* Page by TMSI */
 	BSSGP_SIG[0].send(ts_BSSGP_PS_PAGING_PTMSI(0, g_mmctx.imsi, tmsi));
-	f_wait_paging_req_type1(tmsi_hex);
+	f_wait_paging_req_type1(t_MI_TMSI(hex2oct(tmsi_hex)));
 }
 
 /* Establish an UL TBF: Tune to ARFCN, send RACH, receive AGCH, enable TBF Rx */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/17656
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: Id35477ffc4a914e71100f129bbc4833b48ed5da4
Gerrit-Change-Number: 17656
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/20200330/31aa7dd3/attachment.htm>


More information about the gerrit-log mailing list