From 5a09f75c1e7f66869da4a17c4cc417d367687b72 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Mon, 11 Jun 2018 04:58:53 +0700 Subject: gsm/gsm0480: refactor and expose gsm0480_parse_facility_ie() This function can be used when there is only a part of GSM 04.80 message available - Facility IE, e.g. when a message is carried over GSUP/MAP. Let's expose it. Refactoring includes the following: - adding the 'gsm0480_' prefix; - correcting inverted return value; - cosmetic code style changes. Change-Id: I623c39ffbe6cdee65eade8435a2faa04d0da193e --- tests/ussd/ussd_test.ok | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/ussd/ussd_test.ok') diff --git a/tests/ussd/ussd_test.ok b/tests/ussd/ussd_test.ok index 8fa4348f..1137080b 100644 --- a/tests/ussd/ussd_test.ok +++ b/tests/ussd/ussd_test.ok @@ -4,6 +4,14 @@ [?] FACILITY message with Facility IE (len=18): a2 10 02 01 01 30 0b 02 01 3c 30 06 04 01 0f 04 01 32 [?] RELEASE COMPLETE message with Facility IE (len=8): a3 06 02 01 05 02 01 24 +[i] Testing gsm0480_parse_facility_ie() +[?] FACILITY message with Facility IE (len=18): a2 10 02 01 01 30 0b 02 01 3c 30 06 04 01 0f 04 01 32 +[?] InvokeID: expected 0x01, decoded 0x01 +[?] Operation code: expected 0x3c, decoded 0x3c +[?] Data Coding Scheme: expected 0x0f, decoded 0x0f +[?] Data length: expected 0x01, decoded 0x01 +[?] Data: expected 32, decoded 32 + Tested if it still works. Text was: **321# interrogateSS CFU text..'' code 33 Testing parsing a USSD request and truncated versions -- cgit v1.2.3