diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-06-19 00:45:00 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-06-19 22:20:35 +0700 |
commit | b59ae2dfcff529abaf50444202f21099d89ee2de (patch) | |
tree | a0c0ac192fb92b4c1e13e7d9168e74eb2ef72950 | |
parent | 378a49ce604404cc93cedd216053129ed4e80087 (diff) |
library/SS_Templates.ttcn: add empty Return Result template
According to GSM TS 04.80, table 3.4, the Return Result component
may be empty, i.e. may not contain any results nor operation code.
It is used, for example, in responce to the network-originated
USSD notification.
Change-Id: Iaaff110c5f61cc87eda6143cd841f9832f6074bf
-rw-r--r-- | library/SS_Templates.ttcn | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/library/SS_Templates.ttcn b/library/SS_Templates.ttcn index 316b71bf..1129108f 100644 --- a/library/SS_Templates.ttcn +++ b/library/SS_Templates.ttcn @@ -169,6 +169,27 @@ template SS_FacilityInformation tr_SS_USSD_FACILITY_RETURN_RESULT( } } +template (value) SS_FacilityInformation ts_SS_USSD_FACILITY_RETURN_RESULT_EMPTY( + integer invoke_id := 1 +) := { + { + returnResult := { + invokeId := { present_ := invoke_id }, + result := omit + } + } +} +template SS_FacilityInformation tr_SS_USSD_FACILITY_RETURN_RESULT_EMPTY( + template integer invoke_id := ? +) := { + { + returnResult := { + invokeId := { present_ := invoke_id }, + result := omit + } + } +} + /* Common for both structured and unstructured SS */ template (value) SS_FacilityInformation ts_SS_FACILITY_RETURN_ERROR( integer invoke_id := 1, |