summaryrefslogtreecommitdiffstats
path: root/msc
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-06-06 05:27:32 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-06-06 10:59:11 +0000
commitc3cb53383f1d957ac98e0bbe922665ec6cb8bb25 (patch)
tree7a02add749586e47d81c634221be4116a63a0e55 /msc
parent343b774d219efcb8783094d46f8497a0c3ee089b (diff)
USSD_Helpers.ttcn: add f_USSD_FACILITY_IE_RETURN_ERROR
Diffstat (limited to 'msc')
-rw-r--r--msc/USSD_Helpers.ttcn15
1 files changed, 15 insertions, 0 deletions
diff --git a/msc/USSD_Helpers.ttcn b/msc/USSD_Helpers.ttcn
index 6a71681..5dd4bb1 100644
--- a/msc/USSD_Helpers.ttcn
+++ b/msc/USSD_Helpers.ttcn
@@ -60,4 +60,19 @@ function f_USSD_FACILITY_IE_RETURN_RESULT(
return enc_SS_FacilityInformation(facility_ie);
}
+function f_USSD_FACILITY_IE_RETURN_ERROR(
+ integer invoke_id := 1,
+ SS_Err_Code err_code := SS_ERR_CODE_UNEXPECTED_DATA_VALUE
+) return octetstring {
+ var SS_FacilityInformation facility_ie;
+
+ /* Encode Facility IE */
+ facility_ie := valueof(ts_SS_FACILITY_RETURN_ERROR(
+ invoke_id := invoke_id,
+ err_code := err_code
+ ));
+
+ return enc_SS_FacilityInformation(facility_ie);
+}
+
}