\doxysection{include/osmocom/gsm/gsup\+\_\+sms.h File Reference}
\label{gsup__sms_8h}\index{include/osmocom/gsm/gsup\_sms.h@{include/osmocom/gsm/gsup\_sms.h}}


SMS (Short Message Service) extensions for Osmocom GSUP.  


{\ttfamily \#include $<$stdint.\+h$>$}\newline
\doxysubsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \textbf{ osmo\+\_\+gsup\+\_\+sms\+\_\+sm\+\_\+rp\+\_\+oda\+\_\+t} \{ \newline
\textbf{ OSMO\+\_\+\+GSUP\+\_\+\+SMS\+\_\+\+SM\+\_\+\+RP\+\_\+\+ODA\+\_\+\+NONE} = 0x00
, \newline
\textbf{ OSMO\+\_\+\+GSUP\+\_\+\+SMS\+\_\+\+SM\+\_\+\+RP\+\_\+\+ODA\+\_\+\+IMSI} = 0x01
, \newline
\textbf{ OSMO\+\_\+\+GSUP\+\_\+\+SMS\+\_\+\+SM\+\_\+\+RP\+\_\+\+ODA\+\_\+\+MSISDN} = 0x02
, \newline
\textbf{ OSMO\+\_\+\+GSUP\+\_\+\+SMS\+\_\+\+SM\+\_\+\+RP\+\_\+\+ODA\+\_\+\+SMSC\+\_\+\+ADDR} = 0x03
, \newline
\textbf{ OSMO\+\_\+\+GSUP\+\_\+\+SMS\+\_\+\+SM\+\_\+\+RP\+\_\+\+ODA\+\_\+\+NULL} = 0xff
 \}
\begin{DoxyCompactList}\small\item\em Possible identity types for SM-\/\+RP-\/\{OA$\vert$\+DA\}. \end{DoxyCompactList}\item 
enum \textbf{ osmo\+\_\+gsup\+\_\+sms\+\_\+sm\+\_\+alert\+\_\+rsn\+\_\+t} \{ \newline
\textbf{ OSMO\+\_\+\+GSUP\+\_\+\+SMS\+\_\+\+SM\+\_\+\+ALERT\+\_\+\+RSN\+\_\+\+NONE} = 0x00
, \newline
\textbf{ OSMO\+\_\+\+GSUP\+\_\+\+SMS\+\_\+\+SM\+\_\+\+ALERT\+\_\+\+RSN\+\_\+\+MS\+\_\+\+PRESENT} = 0x01
, \newline
\textbf{ OSMO\+\_\+\+GSUP\+\_\+\+SMS\+\_\+\+SM\+\_\+\+ALERT\+\_\+\+RSN\+\_\+\+MEM\+\_\+\+AVAIL} = 0x02
 \}
\begin{DoxyCompactList}\small\item\em Alert reason values, see 7.\+6.\+8.\+8. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \textbf{ osmo\+\_\+gsup\+\_\+sms\+\_\+encode\+\_\+sm\+\_\+rp\+\_\+da} (struct \textbf{ msgb} $\ast$\textbf{ msg}, const struct \textbf{ osmo\+\_\+gsup\+\_\+message} $\ast$gsup\+\_\+msg)
\begin{DoxyCompactList}\small\item\em Encode SM-\/\+RP-\/\+DA IE (see 7.\+6.\+8.\+1), Destination Address. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+gsup\+\_\+sms\+\_\+decode\+\_\+sm\+\_\+rp\+\_\+da} (struct \textbf{ osmo\+\_\+gsup\+\_\+message} $\ast$gsup\+\_\+msg, uint8\+\_\+t $\ast$\textbf{ data}, size\+\_\+t data\+\_\+len)
\begin{DoxyCompactList}\small\item\em Decode SM-\/\+RP-\/\+DA IE (see 7.\+6.\+8.\+1), Destination Address. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+gsup\+\_\+sms\+\_\+encode\+\_\+sm\+\_\+rp\+\_\+oa} (struct \textbf{ msgb} $\ast$\textbf{ msg}, const struct \textbf{ osmo\+\_\+gsup\+\_\+message} $\ast$gsup\+\_\+msg)
\begin{DoxyCompactList}\small\item\em Encode SM-\/\+RP-\/\+OA IE (see 7.\+6.\+8.\+2), Originating Address. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+gsup\+\_\+sms\+\_\+decode\+\_\+sm\+\_\+rp\+\_\+oa} (struct \textbf{ osmo\+\_\+gsup\+\_\+message} $\ast$gsup\+\_\+msg, uint8\+\_\+t $\ast$\textbf{ data}, size\+\_\+t data\+\_\+len)
\begin{DoxyCompactList}\small\item\em Decode SM-\/\+RP-\/\+OA IE (see 7.\+6.\+8.\+2), Originating Address. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
SMS (Short Message Service) extensions for Osmocom GSUP. 

