Change in osmo-ttcn3-hacks[master]: USSD_Helpers.ttcn: add f_USSD_FACILITY_IE_RETURN_ERROR

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.org
Wed Jun 6 00:15:13 UTC 2018


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/9469


Change subject: USSD_Helpers.ttcn: add f_USSD_FACILITY_IE_RETURN_ERROR
......................................................................

USSD_Helpers.ttcn: add f_USSD_FACILITY_IE_RETURN_ERROR

Change-Id: I9f2b526cb67224cab81364cec34efd42bbb44327
---
M msc/USSD_Helpers.ttcn
1 file changed, 15 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/69/9469/1

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 @@
 	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);
+}
+
 }

-- 
To view, visit https://gerrit.osmocom.org/9469
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: I9f2b526cb67224cab81364cec34efd42bbb44327
Gerrit-Change-Number: 9469
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/20180606/9a9cf3d1/attachment.htm>


More information about the gerrit-log mailing list