libosmo-sigtran 2.1.0.164-775d Osmocom SIGTRAN library

mtp.h
Go to the documentation of this file.
1#pragma once
2
3#include <osmocom/core/utils.h>
4
5/* Chapter 15.17.4 of Q.704 + RFC4666 3.4.5. */
6/* Section 5.1 of ETSI EG 201 693: MTP SI code allocations (for NI= 00) */
7 enum mtp_si_ni00 {
8 MTP_SI_SNM = 0,
9 MTP_SI_STM = 1,
10 MTP_SI_SCCP = 3,
11 MTP_SI_TUP = 4,
12 MTP_SI_ISUP = 5,
13 MTP_SI_DUP = 6, /* call related */
14 MTP_SI_DUP_FAC = 7, /* facility related */
15 MTP_SI_TESTING = 8,
16 MTP_SI_B_ISUP = 9,
17 MTP_SI_SAT_ISUP = 10,
18 MTP_SI_SPEECH = 11, /* speech processing element */
19 MTP_SI_AAL2_SIG = 12,
20 MTP_SI_BICC = 13,
21 MTP_SI_GCP = 14,
22};
23
24 extern const struct value_string mtp_si_vals[];
25
26
27/* Chapter 15.17.5 of Q.704 */
28 enum mtp_unavail_cause {
29 MTP_UNAVAIL_C_UNKNOWN = 0x0,
30 MTP_UNAVAIL_C_UNEQUIP_REM_USER = 0x1,
31 MTP_UNAVAIL_C_INACC_REM_USER = 0x2,
32 /* This field is not explicitly listed in Q.704 15.17.5, but it is
33 * expicitly described as one of four options in:
34 * Q.701 "TABLE 1" and 8.4
35 * Q.704 2.4.2
36 * Q.711 "Table 18" and 7.2.4
37 * Q.714 "Figure D.4"
38 */
39 MTP_UNAVAIL_C_CONGESTED = 0x3,
40 /* reserved */
41};
42
43 extern const struct value_string mtp_unavail_cause_vals[];
44
45 static inline const char *mtp_unavail_cause_str(enum mtp_unavail_cause cs) {
46 return get_value_string(mtp_unavail_cause_vals, cs);
47}
mtp_unavail_cause_str
static const char * mtp_unavail_cause_str(enum mtp_unavail_cause cs)
Definition: mtp.h:45
mtp_si_vals
const struct value_string mtp_si_vals[]
Definition: ss7_as_vty.c:250
mtp_unavail_cause_vals
const struct value_string mtp_unavail_cause_vals[]
Definition: ss7.c:76
mtp_si_ni00
mtp_si_ni00
Definition: mtp.h:7
MTP_SI_GCP
@ MTP_SI_GCP
Definition: mtp.h:21
MTP_SI_BICC
@ MTP_SI_BICC
Definition: mtp.h:20
MTP_SI_ISUP
@ MTP_SI_ISUP
Definition: mtp.h:12
MTP_SI_B_ISUP
@ MTP_SI_B_ISUP
Definition: mtp.h:16
MTP_SI_SAT_ISUP
@ MTP_SI_SAT_ISUP
Definition: mtp.h:17
MTP_SI_TESTING
@ MTP_SI_TESTING
Definition: mtp.h:15
MTP_SI_DUP_FAC
@ MTP_SI_DUP_FAC
Definition: mtp.h:14
MTP_SI_DUP
@ MTP_SI_DUP
Definition: mtp.h:13
MTP_SI_SPEECH
@ MTP_SI_SPEECH
Definition: mtp.h:18
MTP_SI_SNM
@ MTP_SI_SNM
Definition: mtp.h:8
MTP_SI_STM
@ MTP_SI_STM
Definition: mtp.h:9
MTP_SI_TUP
@ MTP_SI_TUP
Definition: mtp.h:11
MTP_SI_AAL2_SIG
@ MTP_SI_AAL2_SIG
Definition: mtp.h:19
MTP_SI_SCCP
@ MTP_SI_SCCP
Definition: mtp.h:10
mtp_unavail_cause
mtp_unavail_cause
Definition: mtp.h:28
MTP_UNAVAIL_C_UNEQUIP_REM_USER
@ MTP_UNAVAIL_C_UNEQUIP_REM_USER
Definition: mtp.h:30
MTP_UNAVAIL_C_UNKNOWN
@ MTP_UNAVAIL_C_UNKNOWN
Definition: mtp.h:29
MTP_UNAVAIL_C_CONGESTED
@ MTP_UNAVAIL_C_CONGESTED
Definition: mtp.h:39
MTP_UNAVAIL_C_INACC_REM_USER
@ MTP_UNAVAIL_C_INACC_REM_USER
Definition: mtp.h:31