MNCC_Types: Add enumerated for cause location + cause coding
Change-Id: If67691a7a18cdde726dfcab48fdfc7b29bd518b4
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,