Change in osmo-ttcn3-hacks[master]: library/SS_Templates.ttcn: add SS_USSD_FACILITY_INVOKE 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
Wed Nov 28 08:46:52 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/11959 )

Change subject: library/SS_Templates.ttcn: add SS_USSD_FACILITY_INVOKE templates
......................................................................

library/SS_Templates.ttcn: add SS_USSD_FACILITY_INVOKE templates

Change-Id: Ic561b6b2eee7315d42fcd5ec5fef182ae097d3b7
---
M library/SS_Templates.ttcn
1 file changed, 41 insertions(+), 0 deletions(-)

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



diff --git a/library/SS_Templates.ttcn b/library/SS_Templates.ttcn
index 1129108..6d8fcf2 100644
--- a/library/SS_Templates.ttcn
+++ b/library/SS_Templates.ttcn
@@ -122,6 +122,47 @@
 	}
 }
 
+template (value) SS_FacilityInformation ts_SS_FACILITY_INVOKE(
+	integer invoke_id := 1,
+	SS_Op_Code op_code,
+	OCT1 ss_code
+) := {
+	{
+		invoke := {
+			invokeId := { present_ := invoke_id },
+			linkedId := omit,
+			opcode := { local := enum2int(op_code) },
+			argument := {
+				sS_ForBS_Code := {
+					ss_Code := ss_code,
+					basicService := omit,
+					longFTN_Supported := omit
+				}
+			}
+		}
+	}
+}
+template SS_FacilityInformation tr_SS_FACILITY_INVOKE(
+	template integer invoke_id := 1,
+	template integer op_code := ?,
+	template OCT1 ss_code := ?
+) := {
+	{
+		invoke := {
+			invokeId := { present_ := invoke_id },
+			linkedId := omit,
+			opcode := { local := op_code },
+			argument := {
+				sS_ForBS_Code := {
+					ss_Code := ss_code,
+					basicService := omit,
+					longFTN_Supported := omit
+				}
+			}
+		}
+	}
+}
+
 template (value) SS_FacilityInformation ts_SS_USSD_FACILITY_RETURN_RESULT(
 	integer invoke_id := 1,
 	SS_Op_Code op_code := SS_OP_CODE_PROCESS_USS_REQ,

-- 
To view, visit https://gerrit.osmocom.org/11959
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic561b6b2eee7315d42fcd5ec5fef182ae097d3b7
Gerrit-Change-Number: 11959
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181128/6325749e/attachment.htm>


More information about the gerrit-log mailing list