[MERGED] osmo-ttcn3-hacks[master]: More GSUP and L3 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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Jan 21 18:34:20 UTC 2018


Harald Welte has submitted this change and it was merged.

Change subject: More GSUP and L3 Templates
......................................................................


More GSUP and L3 Templates

Change-Id: I0e9136fc3b8f171934f054ec149d8dd344faa034
---
M library/GSUP_Types.ttcn
M library/L3_Templates.ttcn
2 files changed, 102 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/library/GSUP_Types.ttcn b/library/GSUP_Types.ttcn
index 95b2cc2..ac85fca 100644
--- a/library/GSUP_Types.ttcn
+++ b/library/GSUP_Types.ttcn
@@ -154,8 +154,16 @@
 template GSUP_PDU ts_GSUP_UL_RES(hexstring imsi) :=
 	ts_GSUP(OSMO_GSUP_MSGT_UPDATE_LOCATION_RESULT, { valueof(ts_GSUP_IE_IMSI(imsi)) });
 
-template GSUP_PDU tr_GSUP_ISD_REQ(template hexstring imsi) :=
-	tr_GSUP(OSMO_GSUP_MSGT_INSERT_DATA_REQUEST, {
+template GSUP_PDU ts_GSUP_UL_ERR(hexstring imsi, integer cause) :=
+	ts_GSUP(OSMO_GSUP_MSGT_UPDATE_LOCATION_ERROR, {
+			valueof(ts_GSUP_IE_IMSI(imsi)), valueof(ts_GSUP_IE_Cause(cause)) });
+
+template GSUP_PDU ts_GSUP_ISD_REQ(hexstring imsi, hexstring msisdn) :=
+	ts_GSUP(OSMO_GSUP_MSGT_INSERT_DATA_REQUEST, {
+			valueof(ts_GSUP_IE_IMSI(imsi)), valueof(ts_GSUP_IE_MSISDN(msisdn)) });
+
+template GSUP_PDU tr_GSUP_ISD_RES(template hexstring imsi) :=
+	tr_GSUP(OSMO_GSUP_MSGT_INSERT_DATA_RESULT, {
 			tr_GSUP_IE_IMSI(imsi), * });
 
 
@@ -181,6 +189,23 @@
 	}
 }
 
+template (value) GSUP_IE ts_GSUP_IE_MSISDN(hexstring msisdn) := {
+	tag := OSMO_GSUP_MSISDN_IE,
+	len := 0, /* overwritten */
+	val := {
+		msisdn := msisdn
+	}
+}
+
+template GSUP_IE tr_GSUP_IE_MSISDN(template hexstring msisdn) := {
+	tag := OSMO_GSUP_MSISDN_IE,
+	len := ?,
+	val := {
+		msisdn := msisdn
+	}
+}
+
+
 template (value) GSUP_IE ts_GSUP_IE_Cause(integer cause) := {
 	tag := OSMO_GSUP_CAUSE_IE,
 	len := 0, /* overwritten */
diff --git a/library/L3_Templates.ttcn b/library/L3_Templates.ttcn
index b44ccba..87c9bd9 100644
--- a/library/L3_Templates.ttcn
+++ b/library/L3_Templates.ttcn
@@ -102,6 +102,31 @@
 	}
 }
 
+template PDU_ML3_NW_MS tr_MT_simple(template BIT4 discr := ?) := {
+	discriminator := discr,
+	tiOrSkip := {
+		skipIndicator := '0000'B
+	},
+	msgs := ?
+}
+
+
+template PDU_ML3_NW_MS tr_CM_SERV_ACC := {
+	discriminator := '0101'B,
+	tiOrSkip := {
+		skipIndicator := '0000'B
+	},
+	msgs := {
+		mm := {
+			cMServiceAccept := {
+				messageType := '100001'B,
+				nsd := ?
+			}
+		}
+	}
+}
+
+
 template PDU_ML3_NW_MS tr_CM_SERV_REJ(template OCT1 rej_cause := ?) := {
 	discriminator := '0101'B,
 	tiOrSkip := {
@@ -225,6 +250,56 @@
 	}
 }
 
+template PDU_ML3_MS_NW ts_ML3_MO_TmsiRealloc_Cmpl modifies ts_ML3_MO := {
+	msgs := {
+		mm := {
+			tmsiReallocComplete := {
+				messageType := '011011'B,
+				nsd := '00'B
+			}
+		}
+	}
+}
+
+template PDU_ML3_NW_MS tr_ML3_MT_LU_Acc := {
+	discriminator := '0101'B,
+	tiOrSkip := {
+		skipIndicator := '0000'B
+	},
+	msgs := {
+		mm := {
+			locationUpdateAccept := {
+				messageType := '000010'B,
+				nsd := '00'B,
+				locationAreaIdentification := ?,
+				mobileIdentityTLV := *,
+				followOnProceed := *,
+				cTS_Permission := *,
+				equivalentPLMNs := *,
+				emergencyNumberList := *,
+				perMS_T3212 := *
+			}
+		}
+	}
+}
+
+template PDU_ML3_NW_MS tr_ML3_MT_LU_Rej(template OCT1 cause := ?) := {
+	discriminator := '0101'B,
+	tiOrSkip := {
+		skipIndicator := '0000'B
+	},
+	msgs := {
+		mm := {
+			locationUpdateReject := {
+				messageType := '000100'B,
+				nsd := '00'B,
+				rejectCause := cause,
+				t3246_Value := *
+			}
+		}
+	}
+}
+
 
 
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I0e9136fc3b8f171934f054ec149d8dd344faa034
Gerrit-PatchSet: 2
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list