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/.
Harald Welte gerrit-no-reply at lists.osmocom.orgHarald Welte has submitted this change and it was merged.
Change subject: MNCC_Types: Add enumerated for cause location + cause coding
......................................................................
MNCC_Types: Add enumerated for cause location + cause coding
Change-Id: If67691a7a18cdde726dfcab48fdfc7b29bd518b4
---
M library/MNCC_Types.ttcn
1 file changed, 26 insertions(+), 3 deletions(-)
Approvals:
Harald Welte: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/library/MNCC_Types.ttcn b/library/MNCC_Types.ttcn
index 62fe3a0..7bd47ee 100644
--- a/library/MNCC_Types.ttcn
+++ b/library/MNCC_Types.ttcn
@@ -214,6 +214,26 @@
GSM48_SCR_IND_NETW_PROVIDED (3)
};
+/* 24.008 Table 10.5.122 */
+type enumerated GSM48_cause_coding {
+ GSM48_CAUSE_CS_Q931 ('00'B),
+ GSM48_CAUSE_CS_RSVD ('01'B),
+ GSM48_CAUSE_CS_NATIONAL ('10'B),
+ GSM48_CAUSE_CS_GSM ('11'B)
+}
+
+type enumerated GSM48_cause_loc {
+ GSM48_CAUSE_LOC_USER ('0000'B),
+ GSM48_CAUSE_LOC_PRN_S_LU ('0001'B),
+ GSM48_CAUSE_LOC_PUN_S_LU ('0010'B),
+ GSM48_CAUSE_LOC_TRANS_NET ('0011'B),
+ GSM48_CAUSE_LOC_PUN_S_RU ('0100'B),
+ GSM48_CAUSE_LOC_PRN_S_RU ('0101'B),
+ GSM48_CAUSE_LOC_INN_NET ('0111'B),
+ GSM48_CAUSE_LOC_NET_BEYOND ('1010'B)
+}
+
+
template MNCC_number ts_MNCC_number(charstring number,
GSM48_type_of_number ton := GSM48_TON_INTERNATIONAL,
@@ -228,13 +248,16 @@
}
type record MNCC_cause {
- int location,
- int coding,
+ GSM48_cause_loc location,
+ GSM48_cause_coding coding,
int rec,
int rec_val,
int val,
octetstring diag
-};
+} with {
+ variant (location) "FIELDLENGTH(32)";
+ variant (coding) "FIELDLENGTH(32)";
+}
type record MNCC_useruser {
int proto,
--
To view, visit https://gerrit.osmocom.org/5849
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If67691a7a18cdde726dfcab48fdfc7b29bd518b4
Gerrit-PatchSet: 2
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder