libsms_getsms.c File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <syslog.h>
#include "../../ut.h"
#include "libsms_charset.h"
#include "libsms_modem.h"
#include "libsms_sms.h"
#include "sms_funcs.h"

Include dependency graph for libsms_getsms.c:

Go to the source code of this file.

Defines

#define set_date(_date, _Pointer)
#define set_time(_time, _Pointer)

Functions

int cds2sms (struct incame_sms *sms, struct modem *mdm, char *s, int s_len)
int check_memory (struct modem *mdm, int flag)
static int decode_pdu (struct modem *mdm, char *pdu, struct incame_sms *sms)
static void deletesms (struct modem *mdm, int sim)
static int fetchsms (struct modem *mdm, int sim, char *pdu)
int getsms (struct incame_sms *sms, struct modem *mdm, int sim)
static int octet2bin (char *octet)
static int pdu2ascii (char *pdu, char *ascii)
static int pdu2binary (char *pdu, char *binary)
static int split_type_0 (char *Pointer, struct incame_sms *sms)
static int split_type_2 (char *position, struct incame_sms *sms)
static int splitascii (struct modem *mdm, char *source, struct incame_sms *sms)
static int splitpdu (struct modem *mdm, char *pdu, struct incame_sms *sms)


Define Documentation

#define set_date ( _date,
_Pointer   ) 

Definition at line 32 of file libsms_getsms.c.

Referenced by split_type_0(), and split_type_2().

#define set_time ( _time,
_Pointer   ) 

Definition at line 42 of file libsms_getsms.c.

Referenced by split_type_0(), and split_type_2().


Function Documentation

int cds2sms ( struct incame_sms sms,
struct modem mdm,
char *  s,
int  s_len 
)

Definition at line 512 of file libsms_getsms.c.

References decode_pdu(), and LM_ERR.

Referenced by check_cds_report().

int check_memory ( struct modem mdm,
int  flag 
)

Definition at line 215 of file libsms_getsms.c.

References checkmodem(), LM_ERR, LM_WARN, put_command(), str2s(), and USED_MEM.

Referenced by modem_process().

static int decode_pdu ( struct modem mdm,
char *  pdu,
struct incame_sms sms 
) [inline, static]

Definition at line 466 of file libsms_getsms.c.

References LM_ERR, modem::mode, MODE_ASCII, MODE_DIGICOM, splitascii(), and splitpdu().

Referenced by cds2sms(), and getsms().

static void deletesms ( struct modem mdm,
int  sim 
) [static]

Definition at line 201 of file libsms_getsms.c.

References LM_DBG, and put_command().

Referenced by getsms().

static int fetchsms ( struct modem mdm,
int  sim,
char *  pdu 
) [static]

Definition at line 137 of file libsms_getsms.c.

References LM_DBG, modem::mode, MODE_DIGICOM, put_command(), and str2s().

Referenced by getsms().

int getsms ( struct incame_sms sms,
struct modem mdm,
int  sim 
)

Definition at line 488 of file libsms_getsms.c.

References decode_pdu(), deletesms(), fetchsms(), and LM_ERR.

Referenced by modem_process().

static int octet2bin ( char *  octet  )  [inline, static]

Definition at line 56 of file libsms_getsms.c.

Referenced by pdu2ascii(), pdu2binary(), split_type_0(), split_type_2(), and splitpdu().

static int pdu2ascii ( char *  pdu,
char *  ascii 
) [static]

Definition at line 77 of file libsms_getsms.c.

References octet2bin(), and sms2ascii().

Referenced by split_type_0().

static int pdu2binary ( char *  pdu,
char *  binary 
) [static]

Definition at line 119 of file libsms_getsms.c.

References octet2bin().

Referenced by split_type_0().

static int split_type_0 ( char *  Pointer,
struct incame_sms sms 
) [static]

static int split_type_2 ( char *  position,
struct incame_sms sms 
) [static]

static int splitascii ( struct modem mdm,
char *  source,
struct incame_sms sms 
) [static]

static int splitpdu ( struct modem mdm,
char *  pdu,
struct incame_sms sms 
) [static]


Generated on Wed May 23 18:00:41 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6