\doxysection{mtp.\+h}
\label{mtp_8h_source}\index{include/osmocom/sigtran/protocol/mtp.h@{include/osmocom/sigtran/protocol/mtp.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{2 }
\DoxyCodeLine{3 \textcolor{preprocessor}{\#include <osmocom/core/utils.h>}}
\DoxyCodeLine{4 }
\DoxyCodeLine{5 \textcolor{comment}{/* Chapter 15.17.4 of Q.704 + RFC4666 3.4.5. */}}
\DoxyCodeLine{6 \textcolor{comment}{/* Section 5.1 of ETSI EG 201 693: MTP SI code allocations (for NI= 00) */}}
\DoxyCodeLine{7 \textcolor{keyword}{enum} mtp\_si\_ni00 \{}
\DoxyCodeLine{8         MTP\_SI\_SNM    = 0,}
\DoxyCodeLine{9         MTP\_SI\_STM    = 1,}
\DoxyCodeLine{10         MTP\_SI\_SCCP  = 3,}
\DoxyCodeLine{11         MTP\_SI\_TUP    = 4,}
\DoxyCodeLine{12         MTP\_SI\_ISUP  = 5,}
\DoxyCodeLine{13         MTP\_SI\_DUP    = 6, \textcolor{comment}{/* call related */}}
\DoxyCodeLine{14         MTP\_SI\_DUP\_FAC    = 7, \textcolor{comment}{/* facility related */}}
\DoxyCodeLine{15         MTP\_SI\_TESTING    = 8,}
\DoxyCodeLine{16         MTP\_SI\_B\_ISUP      = 9,}
\DoxyCodeLine{17         MTP\_SI\_SAT\_ISUP = 10,}
\DoxyCodeLine{18         MTP\_SI\_SPEECH      = 11, \textcolor{comment}{/* speech processing element */}}
\DoxyCodeLine{19         MTP\_SI\_AAL2\_SIG  = 12,}
\DoxyCodeLine{20         MTP\_SI\_BICC  = 13,}
\DoxyCodeLine{21         MTP\_SI\_GCP    = 14,}
\DoxyCodeLine{22 \};}
\DoxyCodeLine{23 }
\DoxyCodeLine{24 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string mtp\_si\_vals[];}
\DoxyCodeLine{25 }
\DoxyCodeLine{26 }
\DoxyCodeLine{27 \textcolor{comment}{/* Chapter 15.17.5 of Q.704 */}}
\DoxyCodeLine{28 \textcolor{keyword}{enum} mtp\_unavail\_cause \{}
\DoxyCodeLine{29         MTP\_UNAVAIL\_C\_UNKNOWN              = 0x0,}
\DoxyCodeLine{30         MTP\_UNAVAIL\_C\_UNEQUIP\_REM\_USER    = 0x1,}
\DoxyCodeLine{31         MTP\_UNAVAIL\_C\_INACC\_REM\_USER        = 0x2,}
\DoxyCodeLine{32         \textcolor{comment}{/* This field is not explicitly listed in Q.704 15.17.5, but it is}}
\DoxyCodeLine{33 \textcolor{comment}{         * expicitly described as one of four options in:}}
\DoxyCodeLine{34 \textcolor{comment}{         * Q.701 "{}TABLE 1"{} and 8.4}}
\DoxyCodeLine{35 \textcolor{comment}{         * Q.704 2.4.2}}
\DoxyCodeLine{36 \textcolor{comment}{         * Q.711 "{}Table 18"{} and 7.2.4}}
\DoxyCodeLine{37 \textcolor{comment}{         * Q.714 "{}Figure D.4"{}}}
\DoxyCodeLine{38 \textcolor{comment}{         */}}
\DoxyCodeLine{39         MTP\_UNAVAIL\_C\_CONGESTED          = 0x3,}
\DoxyCodeLine{40         \textcolor{comment}{/* reserved */}}
\DoxyCodeLine{41 \};}
\DoxyCodeLine{42 }
\DoxyCodeLine{43 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string mtp\_unavail\_cause\_vals[];}
\DoxyCodeLine{44 }
\DoxyCodeLine{45 \textcolor{keyword}{static} \textcolor{keyword}{inline} \textcolor{keyword}{const} \textcolor{keywordtype}{char} *mtp\_unavail\_cause\_str(\textcolor{keyword}{enum} mtp\_unavail\_cause cs) \{}
\DoxyCodeLine{46         \textcolor{keywordflow}{return} get\_value\_string(mtp\_unavail\_cause\_vals, cs);}
\DoxyCodeLine{47 \}}

\end{DoxyCode}
