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/.
Vadim Yanitskiy gerrit-no-reply at lists.osmocom.orgVadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/9368 Change subject: library: introduce Facility IE templates for USSD ...................................................................... library: introduce Facility IE templates for USSD Change-Id: Ibc3e8f70230d656b2f0994ea0c63e6554b6165de --- A library/USSD_Templates.ttcn 1 file changed, 73 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/68/9368/1 diff --git a/library/USSD_Templates.ttcn b/library/USSD_Templates.ttcn new file mode 100644 index 0000000..3a1accc --- /dev/null +++ b/library/USSD_Templates.ttcn @@ -0,0 +1,73 @@ +module USSD_Templates { + +/* USSD Facility IE templates, building on top of SS_Types. + * + * (C) 2018 by Vadim Yanitskiy <axilirator at gmail.com> + * All rights reserved. + * + * Released under the terms of GNU General Public License, Version 2 or + * (at your option) any later version. + */ + +import from General_Types all; +import from SS_Types all; + +template SS_FacilityInformation ts_ML3_FACILITY_USSD_INVOKE( + integer invoke_id := 1, + integer op_code := 59, // (Process)UnstructuredSS-Request (59 or 60) + octetstring ussd_dcs := '0F'O, // GSM 7 bit default alphabet + octetstring ussd_string := 'AA180C3602'O // *#100# +) := { + { + invoke := { + invokeId := { present_ := invoke_id }, + linkedId := omit, + opcode := { local := op_code }, + argument := { + uSSD_Arg := { + ussd_DataCodingScheme := ussd_dcs, + ussd_String := ussd_string, + alertingPattern := omit, + msisdn := omit + } + } + } + } +} + +template SS_FacilityInformation ts_ML3_FACILITY_USSD_RETURN_RESULT( + integer invoke_id := 1, + integer op_code := 59, // (Process)UnstructuredSS-Request (59 or 60) + octetstring ussd_dcs := '0F'O, // GSM 7-bit default alphabet + octetstring ussd_string // 7-bit encoded string +) := { + { + returnResult := { + invokeId := { present_ := invoke_id }, + result := { + opcode := { local := op_code }, + result := { + uSSD_Res := { + ussd_DataCodingScheme := ussd_dcs, + ussd_String := ussd_string + } + } + } + } + } +} + +template SS_FacilityInformation ts_ML3_FACILITY_USSD_RETURN_ERROR( + integer invoke_id := 1, + integer errcode := 71 // Unknown alphabet +) := { + { + returnError := { + invokeId := { present_ := invoke_id }, + errcode := { local := 71 }, + parameter := omit + } + } +} + +} -- To view, visit https://gerrit.osmocom.org/9368 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ibc3e8f70230d656b2f0994ea0c63e6554b6165de Gerrit-Change-Number: 9368 Gerrit-PatchSet: 1 Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180529/3587594a/attachment.htm>