Change in osmo-ttcn3-hacks[master]: BSSMAP templates

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

neels gerrit-no-reply at lists.osmocom.org
Thu Oct 1 04:51:35 UTC 2020


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


Change subject: BSSMAP templates
......................................................................

BSSMAP templates

Change-Id: Ifee698c128a5345f6bf0301ad4dac9e083285d56
---
M library/BSSMAP_Templates.ttcn
1 file changed, 86 insertions(+), 0 deletions(-)



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

diff --git a/library/BSSMAP_Templates.ttcn b/library/BSSMAP_Templates.ttcn
index 0ec5639..11d6d3f 100644
--- a/library/BSSMAP_Templates.ttcn
+++ b/library/BSSMAP_Templates.ttcn
@@ -18,6 +18,7 @@
 import from Misc_Helpers all;
 import from GSM_Types all;
 import from BSSAP_Types all;
+import from BSSAP_LE_Types all;
 
 type integer BssmapCause;
 type integer SpeechVersion;
@@ -1693,6 +1694,91 @@
 	}
 }
 
+template (value) BSSMAP_IE_LocationType ts_BSSMAP_IE_LocationType
+:= {
+	elementIdentifier := '44'O,
+	lengthIndicator := 1,
+	locationInformation := '00'O,
+	positioningMethod := omit
+}
 
+template (value) PDU_BSSAP ts_BSSMAP_Perform_Location_Request(template (omit) BSSMAP_IE_IMSI imsi,
+							      template (omit) BSSMAP_IE_CellIdentifier cellIdentifier := omit
+							      )
+modifies ts_BSSAP_BSSMAP := {
+	pdu := {
+		bssmap := {
+			performLocationRequest := {
+				messageType := '2B'O,
+				locationType := ts_BSSMAP_IE_LocationType,
+				cellIdentifier := cellIdentifier,
+				classmarkInformationType3 := omit,
+				lCS_ClientType := omit,
+				chosenChannel := omit,
+				lCS_Priority := omit,
+				lCS_QOS := omit,
+				gPS_AssistanceData := omit,
+				aPDU := omit,
+				iMSI := imsi,
+				iMEI := omit,
+				gANSS_LocationType := omit,
+				gANSS_AssistanceData := omit
+			}
+		}
+	}
+}
+
+template BSSMAP_IE_LocationEstimate tr_BSSMAP_IE_LocationEstimate(template octetstring geo_loc := ?)
+:= {
+	elementIdentifier := '45'O,
+	lengthIndicator := ?,
+	geographicLocation := geo_loc
+}
+
+function tr_BSSMAP_LcsCause(template BSSMAP_LE_LcsCause cause)
+return template BSSMAP_IE_LCSCause {
+	if (istemplatekind(cause, "omit")) {
+		return omit;
+	}
+	var template BSSMAP_IE_LCSCause ie := {
+		elementIdentifier := '47'O,
+		lengthIndicator := 1,
+		causeValue := int2bit(enum2int(valueof(cause)), 8),
+		diagnosticValue := omit
+	}
+	return ie;
+}
+
+template PDU_BSSAP tr_BSSMAP_Perform_Location_Response(template BSSMAP_IE_LocationEstimate locationEstimate := *,
+						       template BSSMAP_IE_PositioningData positioningData := *,
+						       template BSSMAP_IE_LCSCause lCS_Cause := *
+						      )
+modifies tr_BSSAP_BSSMAP := {
+	pdu := {
+		bssmap := {
+			performLocationResponse := {
+				messageType := '2D'O,
+				locationEstimate := locationEstimate,
+				positioningData := positioningData,
+				decipheringKeys := *,
+				lCS_Cause := lCS_Cause,
+				velocityEstimate := *,
+				gANSS_PositioningData := *
+			}
+		}
+	}
+}
+
+template PDU_BSSAP tr_BSSMAP_Perform_Location_Abort(template BSSMAP_IE_LCSCause lCS_Cause := ?)
+modifies tr_BSSAP_BSSMAP := {
+	pdu := {
+		bssmap := {
+			performLocationAbort := {
+				messageType := '2E'O,
+				lCS_Cause := lCS_Cause
+			}
+		}
+	}
+}
 
 } with { encode "RAW" };

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20372
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: Ifee698c128a5345f6bf0301ad4dac9e083285d56
Gerrit-Change-Number: 20372
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201001/cc8d7d2f/attachment.htm>


More information about the gerrit-log mailing list