Change in osmo-ttcn3-hacks[master]: library/rua: Add some more 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/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Dec 13 18:04:49 UTC 2021


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

Change subject: library/rua: Add some more templates
......................................................................

library/rua: Add some more templates

Change-Id: Iab2afbc6ebaa8a41d3e951155609d4c0a2d6866b
---
M library/rua/RUA_Templates.ttcn
1 file changed, 161 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  daniel: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved



diff --git a/library/rua/RUA_Templates.ttcn b/library/rua/RUA_Templates.ttcn
index b7387bf..d4e4a0c 100644
--- a/library/rua/RUA_Templates.ttcn
+++ b/library/rua/RUA_Templates.ttcn
@@ -17,6 +17,166 @@
 import from RUA_PDU_Contents all;
 import from RUA_PDU_Descriptions all;
 
+/*********************************************************************************
+ * 3GPP TS 25.468
+ *********************************************************************************/
 
-/* TODO: Add RUA Templates here */
+template (value) Cause ts_RUA_Cause(template (value) CauseRadioNetwork c) := {
+	radioNetwork := c
 }
+
+/* 9.1.3 CONNECT */
+template (present) RUA_PDU
+tr_RUA_Connect(template (present) CN_DomainIndicator domain := ?,
+	       template (present) bitstring context_id := ?,
+	       template (present) Establishment_Cause est_cause := ?,
+	       template (present) octetstring ranap_msg := ?) := {
+	initiatingMessage := {
+		procedureCode := id_Connect,
+		criticality := reject,
+		value_ := {
+			connect_ := {
+				protocolIEs := {
+					{
+						id := 7,
+						criticality := reject,
+						value_ := { cN_DomainIndicator := domain }
+					}, {
+						id := 3,
+						criticality := reject,
+						value_ := { context_ID := context_id }
+					}, {
+						id := 6,
+						criticality := reject,
+						value_ := { establishment_Cause := est_cause }
+					}, {
+						id := 4,
+						criticality := reject,
+						value_ := {
+							rANAP_Message := ranap_msg
+						}
+					}
+				},
+				protocolExtensions := omit
+			}
+		}
+	}
+}
+
+/* 9.1.4 DIRECT TRANSFER */
+template (value) RUA_PDU
+ts_RUA_DirectTransfer(template (value) CN_DomainIndicator domain,
+		      template (value) bitstring context_id,
+		      template (value) octetstring ranap_msg) := {
+	initiatingMessage := {
+		procedureCode := id_DirectTransfer,
+		criticality := reject,
+		value_ := {
+			directTransfer := {
+				protocolIEs := {
+					{
+						id := 7,
+						criticality := reject,
+						value_ := { cN_DomainIndicator := domain }
+					}, {
+						id := 3,
+						criticality := reject,
+						value_ := { context_ID := context_id }
+					}, {
+						id := 4,
+						criticality := reject,
+						value_ := { rANAP_Message := ranap_msg }
+					}
+				},
+				protocolExtensions := omit
+			}
+		}
+	}
+}
+template (present) RUA_PDU
+tr_RUA_DirectTransfer(template (present) CN_DomainIndicator domain := ?,
+		      template (present) bitstring context_id := ?,
+		      template (present) octetstring ranap_msg := ?) := {
+	initiatingMessage := {
+		procedureCode := id_DirectTransfer,
+		criticality := reject,
+		value_ := {
+			directTransfer := {
+				protocolIEs := {
+					{
+						id := 7,
+						criticality := reject,
+						value_ := { cN_DomainIndicator := domain }
+					}, {
+						id := 3,
+						criticality := reject,
+						value_ := { context_ID := context_id }
+					}, {
+						id := 4,
+						criticality := reject,
+						value_ := { rANAP_Message := ranap_msg }
+					}
+				},
+				protocolExtensions := omit
+			}
+		}
+	}
+}
+
+/* 9.1.5 DISCONNECT */
+template (present) RUA_PDU
+tr_RUA_Disconnect(template (present) CN_DomainIndicator domain := ?,
+		      template (present) bitstring context_id := ?,
+		      template (present) Cause cause := ?,
+		      template (present) octetstring ranap_msg := ?) := {
+	initiatingMessage := {
+		procedureCode := 3,
+		criticality := reject,
+		value_ := {
+			disconnect_ := {
+				protocolIEs := {
+					{
+						id := 7,
+						criticality := reject,
+						value_ := { cN_DomainIndicator := domain }
+					}, {
+						id := 3,
+						criticality := reject,
+						value_ := { context_ID := context_id }
+					}, {
+						id := 1,
+						criticality := reject,
+						value_ := { cause := cause }
+					}, {
+						id := 4,
+						criticality := reject,
+						value_ := { rANAP_Message := ranap_msg }
+					}
+				},
+				protocolExtensions := omit
+			}
+		}
+	}
+}
+
+/* 9.1.6 CONNECTIONLESS TRANSFER */
+template (value) RUA_PDU
+ts_RUA_ConnectionlessTransfer(template (value) octetstring ranap_msg) := {
+	initiatingMessage := {
+		procedureCode := id_ConnectionlessTransfer,
+		criticality := reject,
+		value_ := {
+			connectionlessTransfer := {
+				protocolIEs := {
+					{
+						id := 4,
+						criticality := reject,
+						value_ := { rANAP_Message := ranap_msg }
+					}
+				},
+				protocolExtensions := omit
+			}
+		}
+	}
+}
+};

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26546
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: Iab2afbc6ebaa8a41d3e951155609d4c0a2d6866b
Gerrit-Change-Number: 26546
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin 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/20211213/869a3507/attachment.htm>


More information about the gerrit-log mailing list