libosmo-sigtran 2.1.0.180-1af5
Osmocom SIGTRAN library
mtp.h
Go to the documentation of this file.
1#pragma once
2
3#include <osmocom/core/utils.h>
4
5/* Q.704 14.2.1, RFC4666 3.4.5.
6 * ETSI EG 201 693 Section 5.1: MTP SI code allocations (for NI=00 (international network) only)
7 */
14 MTP_SI_DUP = 6, /* call related */
15 MTP_SI_DUP_FAC = 7, /* facility related */
19 MTP_SI_SPEECH = 11, /* speech processing element */
23};
24extern const struct value_string mtp_si_vals[];
25
26/* Q.704 14.2.2 Sub-service field (Network Indicator) */
32};
33extern const struct value_string mtp_network_indicator_vals[];
34
35
36/* Q.704 15.17.5 */
41 /* This field is not explicitly listed in Q.704 15.17.5, but it is
42 * explicitly described as one of four options in:
43 * Q.701 "TABLE 1" and 8.4
44 * Q.704 2.4.2
45 * Q.711 "Table 18" and 7.2.4
46 * Q.714 "Figure D.4"
47 */
49 /* reserved */
50};
51
52extern const struct value_string mtp_unavail_cause_vals[];
53
54static inline const char *mtp_unavail_cause_str(enum mtp_unavail_cause cs) {
55 return get_value_string(mtp_unavail_cause_vals, cs);
56}
static const char * mtp_unavail_cause_str(enum mtp_unavail_cause cs)
Definition: mtp.h:54
const struct value_string mtp_si_vals[]
Definition: ss7_as_vty.c:250
mtp_network_indicator
Definition: mtp.h:27
@ MTP_NI_NATIONAL
Definition: mtp.h:30
@ MTP_NI_RESERVED_NATIONAL
Definition: mtp.h:31
@ MTP_NI_SPARE_INTERNATIONAL
Definition: mtp.h:29
@ MTP_NI_INTERNATIONAL
Definition: mtp.h:28
const struct value_string mtp_network_indicator_vals[]
Definition: ss7_vty.c:110
const struct value_string mtp_unavail_cause_vals[]
Definition: ss7.c:76
mtp_si_ni00
Definition: mtp.h:8
@ MTP_SI_GCP
Definition: mtp.h:22
@ MTP_SI_BICC
Definition: mtp.h:21
@ MTP_SI_ISUP
Definition: mtp.h:13
@ MTP_SI_B_ISUP
Definition: mtp.h:17
@ MTP_SI_SAT_ISUP
Definition: mtp.h:18
@ MTP_SI_TESTING
Definition: mtp.h:16
@ MTP_SI_DUP_FAC
Definition: mtp.h:15
@ MTP_SI_DUP
Definition: mtp.h:14
@ MTP_SI_SPEECH
Definition: mtp.h:19
@ MTP_SI_SNM
Definition: mtp.h:9
@ MTP_SI_STM
Definition: mtp.h:10
@ MTP_SI_TUP
Definition: mtp.h:12
@ MTP_SI_AAL2_SIG
Definition: mtp.h:20
@ MTP_SI_SCCP
Definition: mtp.h:11
mtp_unavail_cause
Definition: mtp.h:37
@ MTP_UNAVAIL_C_UNEQUIP_REM_USER
Definition: mtp.h:39
@ MTP_UNAVAIL_C_UNKNOWN
Definition: mtp.h:38
@ MTP_UNAVAIL_C_CONGESTED
Definition: mtp.h:48
@ MTP_UNAVAIL_C_INACC_REM_USER
Definition: mtp.h:40