sms_report.h File Reference

#include "../../str.h"
#include "sms_funcs.h"

Include dependency graph for sms_report.h:

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

Go to the source code of this file.

Defines

#define NR_CELLS   256

Functions

void add_sms_into_report_queue (int id, struct sms_msg *sms, char *, int)
void check_timeout_in_report_queue (void)
void destroy_report_queue (void)
strget_error_str (int status)
struct sms_msgget_sms_from_report_queue (int id)
strget_text_from_report_queue (int id)
int init_report_queue (void)
int relay_report_to_queue (int id, char *phone, int status, int *old_status)
void remove_sms_from_report_queue (int id)
void set_gettime_function (void)


Define Documentation

#define NR_CELLS   256


Function Documentation

void add_sms_into_report_queue ( int  id,
struct sms_msg sms,
char *  ,
int   
)

void check_timeout_in_report_queue ( void   ) 

Definition at line 195 of file sms_report.c.

References free_report_cell(), get_time, LM_INFO, NR_CELLS, report_cell::sms, report_cell::status, and timeout.

Referenced by modem_process().

void destroy_report_queue ( void   ) 

Definition at line 116 of file sms_report.c.

References free_report_cell(), NR_CELLS, shm_free, and report_cell::sms.

Referenced by sms_exit().

str* get_error_str ( int  status  ) 

Definition at line 242 of file sms_report.c.

References END_ERR_MSG, END_ERR_MSG_LEN, _str::len, _str::s, START_ERR_MSG, and START_ERR_MSG_LEN.

Referenced by check_sms_report().

struct sms_msg* get_sms_from_report_queue ( int  id  )  [read]

Definition at line 234 of file sms_report.c.

Referenced by check_sms_report().

str* get_text_from_report_queue ( int  id  ) 

Definition at line 222 of file sms_report.c.

References _str::len, _str::s, report_cell::text, and report_cell::text_len.

Referenced by check_sms_report().

int init_report_queue ( void   ) 

Definition at line 101 of file sms_report.c.

References LM_ERR, NR_CELLS, and shm_malloc().

Referenced by global_init().

int relay_report_to_queue ( int  id,
char *  phone,
int  status,
int *  old_status 
)

Definition at line 151 of file sms_report.c.

References _str::len, LM_DBG, LM_INFO, _str::s, report_cell::sms, report_cell::status, and sms_msg::to.

Referenced by check_sms_report().

void remove_sms_from_report_queue ( int  id  ) 

Definition at line 214 of file sms_report.c.

References free_report_cell().

Referenced by check_sms_report().

void set_gettime_function ( void   ) 

Definition at line 66 of file sms_report.c.

References get_ticks(), get_time, get_time_ser(), get_time_sys(), and LM_INFO.

Referenced by modem_process().


Generated on Thu May 24 12:00:42 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6