aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/sigtran/protocol/mtp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/sigtran/protocol/mtp.h')
-rw-r--r--include/osmocom/sigtran/protocol/mtp.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/osmocom/sigtran/protocol/mtp.h b/include/osmocom/sigtran/protocol/mtp.h
index 8b990c0..2f0c7ac 100644
--- a/include/osmocom/sigtran/protocol/mtp.h
+++ b/include/osmocom/sigtran/protocol/mtp.h
@@ -22,3 +22,18 @@ enum mtp_si_ni00 {
};
extern const struct value_string mtp_si_vals[];
+
+
+/* Chapter 15.17.5 of Q.705 */
+enum mtp_unavail_cause {
+ MTP_UNAVAIL_C_UNKNOWN = 0x0,
+ MTP_UNAVAIL_C_UNEQUIP_REM_USER = 0x1,
+ MTP_UNAVAIL_C_INACC_REM_USER = 0x2,
+ /* reserved */
+};
+
+extern const struct value_string mtp_unavail_cause_vals[];
+
+static inline const char *mtp_unavail_cause_str(enum mtp_unavail_cause cs) {
+ return get_value_string(mtp_unavail_cause_vals, cs);
+}