pespin submitted this change.

View Change



2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified
tcap: Add initial templates

Change-Id: Ibc471733554c75b7c494b2bd4126232dd8c0553c
---
A library/tcap/TCAP_Templates.ttcn
1 file changed, 53 insertions(+), 0 deletions(-)

diff --git a/library/tcap/TCAP_Templates.ttcn b/library/tcap/TCAP_Templates.ttcn
new file mode 100644
index 0000000..92f4bb9
--- /dev/null
+++ b/library/tcap/TCAP_Templates.ttcn
@@ -0,0 +1,53 @@
+module TCAP_Templates {
+
+import from General_Types all;
+import from Misc_Helpers all;
+import from Native_Functions all;
+
+import from TCAPMessages language "ASN.1:1997" all;
+import from TCAP_Types all;
+
+
+template (value) TCMessage
+ts_TCAP_Begin(template (value) OCT4 otid) := {
+ begin := {
+ otid := otid,
+ dialoguePortion := omit,
+ components := omit
+ }
+}
+
+template (value) TCMessage
+ts_TCAP_Continue(template (value) OCT4 otid,
+ template (value) OCT4 dtid) := {
+ continue_ := {
+ otid := otid,
+ dtid := dtid,
+ dialoguePortion := omit,
+ components := omit
+ }
+}
+
+template (value) TCMessage
+ts_TCAP_End(template (value) OCT4 dtid) := {
+ end := {
+ dtid := dtid,
+ dialoguePortion := omit,
+ components := omit
+ }
+}
+
+template (value) TCMessage
+ts_TCAP_Abort(template (value) OCT4 dtid, template (omit) Reason reason := omit) := {
+ abort := {
+ dtid := dtid,
+ reason := reason
+ }
+}
+
+template (value) Reason
+ts_TCAP_Reason_p_AbortCause(template (value) P_AbortCause p_abortCause := 0 /*unrecognizedMessageType*/) := {
+ p_abortCause := p_abortCause
+}
+
+}

To view, visit change 41123. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ibc471733554c75b7c494b2bd4126232dd8c0553c
Gerrit-Change-Number: 41123
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>