Change in osmo-ttcn3-hacks[master]: Add templates for BSSGP Radio Status procedure

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

daniel gerrit-no-reply at lists.osmocom.org
Fri Nov 20 15:03:42 UTC 2020


daniel has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21251 )

Change subject: Add templates for BSSGP Radio Status procedure
......................................................................

Add templates for BSSGP Radio Status procedure

Change-Id: I6d49eb4907c4568d88da5d6fd7962e388a3607fb
Related: SYS#5210
---
M library/Osmocom_Gb_Types.ttcn
1 file changed, 54 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  daniel: Looks good to me, approved



diff --git a/library/Osmocom_Gb_Types.ttcn b/library/Osmocom_Gb_Types.ttcn
index 3ba3fca..8d48cb1 100644
--- a/library/Osmocom_Gb_Types.ttcn
+++ b/library/Osmocom_Gb_Types.ttcn
@@ -1746,8 +1746,62 @@
 	}
 }
 
+type enumerated BssgpRadioCause {
+	BSSGP_RADIO_CAUSE_CONTACT_LOST		('00'H),
+	BSSGP_RADIO_CAUSE_LINK_QUAL_INSUFF	('01'H),
+	BSSGP_RADIO_CAUSE_CELL_RESEL_ORDERED	('02'H),
+	BSSGP_RADIO_CAUSE_CELL_RESEL_PREPARE	('03'H),
+	BSSGP_RADIO_CAUSE_CELL_RESEL_FAILURE 	('04'H)
+} with { variant "FIELDLENGTH(8)" };
 
 
+function ts_BSSGP_RADIO_CAUSE(template (omit) BssgpRadioCause cause) return template (omit) Radio_Cause {
+	var template (omit) Radio_Cause ret;
+	if (istemplatekind(cause, "omit")) {
+		ret := omit;
+	} else {
+		ret.iEI := '19'O;
+		ret.ext := '1'B;
+		ret.lengthIndicator := { length1 := 1 };
+		ret.radio_Cause_Value := int2oct(enum2int(valueof(cause)), 1);
+	}
+	return ret;
+}
+function tr_BSSGP_RADIO_CAUSE(template BssgpRadioCause cause) return template (present) Radio_Cause {
+	var template Radio_Cause ret;
+	ret.iEI := '19'O;
+	ret.ext := '1'B;
+	ret.lengthIndicator := { length1 := 1 };
+	if (isvalue(cause)) {
+		ret.radio_Cause_Value := int2oct(enum2int(valueof(cause)), 1);
+	} else {
+		ret.radio_Cause_Value := ?
+	}
+	return ret;
+}
+
+/* 10.3.5 */
+template (value) PDU_BSSGP
+ts_BSSGP_RADIO_STATUS(GprsTlli tlli, template (value) BssgpRadioCause cause) := {
+	pDU_BSSGP_RADIO_STATUS := {
+		bssgpPduType := '0a'O,
+		tLLI := ts_BSSGP_TLLI(tlli),
+		tMSI := omit,
+		iMSI := omit,
+		radio_Cause := ts_BSSGP_RADIO_CAUSE(cause)
+	}
+}
+template (present) PDU_BSSGP
+tr_BSSGP_RADIO_STATUS(template (present) GprsTlli tlli, template (present) BssgpRadioCause cause) := {
+	pDU_BSSGP_RADIO_STATUS := {
+		bssgpPduType := '0a'O,
+		tLLI := ts_BSSGP_TLLI(tlli),
+		tMSI := omit,
+		iMSI := omit,
+		radio_Cause := tr_BSSGP_RADIO_CAUSE(cause)
+	}
+}
+
 
 
 /* PDU permitted on PTP BVC only (TS 48.018 Section 5.4.1) */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21251
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: I6d49eb4907c4568d88da5d6fd7962e388a3607fb
Gerrit-Change-Number: 21251
Gerrit-PatchSet: 2
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201120/20253b9f/attachment.htm>


More information about the gerrit-log mailing list