diff options
author | Harald Welte <laforge@osmocom.org> | 2021-02-08 17:46:08 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-02-10 19:58:38 +0100 |
commit | afbcc5d532fe9ccfd82d15423796ca1a39a37393 (patch) | |
tree | f9b5de76d19c99c5cc891a8ddbfa9af3fec012d8 /include/osmocom/sigtran/protocol/mtp.h | |
parent | 7daae9bd67215888c7d5e201ea2261fb6c8fbb2b (diff) |
xua_snm: Implement handling of DUPU messages
A DUPU message in SUA and M3UA indicates the unavailability of
a (MTP-level) user, i.e. the entire SCCP, ISUP, ... is not available.
If we receive a DUPU (destination user part unavailable) message in ASP
role, then we must
* distribute it to any other ASPs for which we operate in SG mode
* pass it as MTP-STATUS.ind to SCCP, which can then generates
N-PCSTATE.ind to the SCCP User
Change-Id: I1559ed0f761a8495b222df48c6bd43798e220471
Diffstat (limited to 'include/osmocom/sigtran/protocol/mtp.h')
-rw-r--r-- | include/osmocom/sigtran/protocol/mtp.h | 15 |
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); +} |