\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{00001\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00002\ }
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#include\ <osmocom/core/utils.h>}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{comment}{/*\ Chapter\ 15.17.4\ of\ Q.704\ +\ RFC4666\ 3.4.5.\ */}}
\DoxyCodeLine{00006\ \textcolor{comment}{/*\ Section\ 5.1\ of\ ETSI\ EG\ 201\ 693:\ MTP\ SI\ code\ allocations\ (for\ NI=\ 00)\ */}}
\DoxyCodeLine{00007\ \textcolor{keyword}{enum}\ mtp\_si\_ni00\ \{}
\DoxyCodeLine{00008\ \ \ \ \ \ \ \ \ MTP\_SI\_SNM\ \ \ \ =\ 0,}
\DoxyCodeLine{00009\ \ \ \ \ \ \ \ \ MTP\_SI\_STM\ \ \ \ =\ 1,}
\DoxyCodeLine{00010\ \ \ \ \ \ \ \ \ MTP\_SI\_SCCP\ \ =\ 3,}
\DoxyCodeLine{00011\ \ \ \ \ \ \ \ \ MTP\_SI\_TUP\ \ \ \ =\ 4,}
\DoxyCodeLine{00012\ \ \ \ \ \ \ \ \ MTP\_SI\_ISUP\ \ =\ 5,}
\DoxyCodeLine{00013\ \ \ \ \ \ \ \ \ MTP\_SI\_DUP\ \ \ \ =\ 6,\ \textcolor{comment}{/*\ call\ related\ */}}
\DoxyCodeLine{00014\ \ \ \ \ \ \ \ \ MTP\_SI\_DUP\_FAC\ \ \ \ =\ 7,\ \textcolor{comment}{/*\ facility\ related\ */}}
\DoxyCodeLine{00015\ \ \ \ \ \ \ \ \ MTP\_SI\_TESTING\ \ \ \ =\ 8,}
\DoxyCodeLine{00016\ \ \ \ \ \ \ \ \ MTP\_SI\_B\_ISUP\ \ \ \ \ \ =\ 9,}
\DoxyCodeLine{00017\ \ \ \ \ \ \ \ \ MTP\_SI\_SAT\_ISUP\ =\ 10,}
\DoxyCodeLine{00018\ \ \ \ \ \ \ \ \ MTP\_SI\_SPEECH\ \ \ \ \ \ =\ 11,\ \textcolor{comment}{/*\ speech\ processing\ element\ */}}
\DoxyCodeLine{00019\ \ \ \ \ \ \ \ \ MTP\_SI\_AAL2\_SIG\ \ =\ 12,}
\DoxyCodeLine{00020\ \ \ \ \ \ \ \ \ MTP\_SI\_BICC\ \ =\ 13,}
\DoxyCodeLine{00021\ \ \ \ \ \ \ \ \ MTP\_SI\_GCP\ \ \ \ =\ 14,}
\DoxyCodeLine{00022\ \};}
\DoxyCodeLine{00023\ }
\DoxyCodeLine{00024\ \textcolor{keyword}{extern}\ \textcolor{keyword}{const}\ \textcolor{keyword}{struct\ }value\_string\ mtp\_si\_vals[];}
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \textcolor{comment}{/*\ Chapter\ 15.17.5\ of\ Q.704\ */}}
\DoxyCodeLine{00028\ \textcolor{keyword}{enum}\ mtp\_unavail\_cause\ \{}
\DoxyCodeLine{00029\ \ \ \ \ \ \ \ \ MTP\_UNAVAIL\_C\_UNKNOWN\ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ 0x0,}
\DoxyCodeLine{00030\ \ \ \ \ \ \ \ \ MTP\_UNAVAIL\_C\_UNEQUIP\_REM\_USER\ \ \ \ =\ 0x1,}
\DoxyCodeLine{00031\ \ \ \ \ \ \ \ \ MTP\_UNAVAIL\_C\_INACC\_REM\_USER\ \ \ \ \ \ \ \ =\ 0x2,}
\DoxyCodeLine{00032\ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ This\ field\ is\ not\ explicitly\ listed\ in\ Q.704\ 15.17.5,\ but\ it\ is}}
\DoxyCodeLine{00033\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ *\ expicitly\ described\ as\ one\ of\ four\ options\ in:}}
\DoxyCodeLine{00034\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ *\ Q.701\ "{}TABLE\ 1"{}\ and\ 8.4}}
\DoxyCodeLine{00035\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ *\ Q.704\ 2.4.2}}
\DoxyCodeLine{00036\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ *\ Q.711\ "{}Table\ 18"{}\ and\ 7.2.4}}
\DoxyCodeLine{00037\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ *\ Q.714\ "{}Figure\ D.4"{}}}
\DoxyCodeLine{00038\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ */}}
\DoxyCodeLine{00039\ \ \ \ \ \ \ \ \ MTP\_UNAVAIL\_C\_CONGESTED\ \ \ \ \ \ \ \ \ \ =\ 0x3,}
\DoxyCodeLine{00040\ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ reserved\ */}}
\DoxyCodeLine{00041\ \};}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ \textcolor{keyword}{extern}\ \textcolor{keyword}{const}\ \textcolor{keyword}{struct\ }value\_string\ mtp\_unavail\_cause\_vals[];}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00045\ \textcolor{keyword}{static}\ \textcolor{keyword}{inline}\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *mtp\_unavail\_cause\_str(\textcolor{keyword}{enum}\ mtp\_unavail\_cause\ cs)\ \{}
\DoxyCodeLine{00046\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ get\_value\_string(mtp\_unavail\_cause\_vals,\ cs);}
\DoxyCodeLine{00047\ \}}

\end{DoxyCode}
