libsms_modem.h File Reference

#include <termios.h>
#include "sms_funcs.h"

Include dependency graph for libsms_modem.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MODE_ASCII   3
#define MODE_DIGICOM   2
#define MODE_NEW   4
#define MODE_OLD   1
#define READ_SLEEP   10000
#define READ_TIMEOUT   10

Typedefs

typedef int(* cds_report )(struct modem *, char *, int)

Functions

int checkmodem (struct modem *mdm)
int closemodem (struct modem *mdm)
int initmodem (struct modem *mdm, cds_report cds_report_f)
int openmodem (struct modem *mdm)
int put_command (struct modem *mdm, char *command, int clen, char *answer, int max, int timeout, char *expect)
int setmodemparams (struct modem *mdm)
int setsmsc (struct modem *mdm, char *smsc)


Define Documentation

#define MODE_ASCII   3

Definition at line 24 of file libsms_modem.h.

Referenced by decode_pdu(), initmodem(), putsms(), and set_modem_arg().

#define MODE_DIGICOM   2

Definition at line 23 of file libsms_modem.h.

Referenced by checkmodem(), decode_pdu(), fetchsms(), initmodem(), and set_modem_arg().

#define MODE_NEW   4

Definition at line 25 of file libsms_modem.h.

Referenced by parse_config_lines(), and set_modem_arg().

#define MODE_OLD   1

Definition at line 22 of file libsms_modem.h.

Referenced by make_pdu(), putsms(), set_modem_arg(), and splitpdu().

#define READ_SLEEP   10000

Definition at line 27 of file libsms_modem.h.

Referenced by put_command().

#define READ_TIMEOUT   10

Definition at line 28 of file libsms_modem.h.


Typedef Documentation

typedef int(* cds_report)(struct modem *, char *, int)

Definition at line 30 of file libsms_modem.h.


Function Documentation

int checkmodem ( struct modem mdm  ) 

Definition at line 352 of file libsms_modem.c.

References cds_report_func, initmodem(), LM_WARN, modem::mode, MODE_DIGICOM, and put_command().

Referenced by check_memory(), and putsms().

int closemodem ( struct modem mdm  ) 

Definition at line 411 of file libsms_modem.c.

References modem::fd, and modem::oldtio.

int initmodem ( struct modem mdm,
cds_report  cds_report_f 
)

int openmodem ( struct modem mdm  ) 

Definition at line 398 of file libsms_modem.c.

References modem::device, modem::fd, and modem::oldtio.

Referenced by modem_process().

int put_command ( struct modem mdm,
char *  command,
int  clen,
char *  answer,
int  max,
int  timeout,
char *  expect 
)

int setmodemparams ( struct modem mdm  ) 

Definition at line 192 of file libsms_modem.c.

References modem::baudrate, and modem::fd.

Referenced by modem_process().

int setsmsc ( struct modem mdm,
char *  smsc 
)

Definition at line 382 of file libsms_modem.c.

References put_command().

Referenced by initmodem().


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