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
This commit is contained in:
Vadim Yanitskiy 2018-06-19 00:45:00 +07:00
parent 378a49ce60
commit b59ae2dfcf
1 changed files with 21 additions and 0 deletions

View File

@ -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,