sms.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include "../../sr_module.h"
#include "../../error.h"
#include "../../dprint.h"
#include "../../ut.h"
#include "../../globals.h"
#include "../../mem/mem.h"
#include "../../mem/shm_mem.h"
#include "../../socket_info.h"
#include "../tm/tm_load.h"
#include "sms_funcs.h"
#include "sms_report.h"
#include "libsms_modem.h"

Include dependency graph for sms.c:

Go to the source code of this file.

Defines

#define eat_spaces(_p)

Functions

static int fixup_sms_send_msg_to_net (void **param, int param_no)
int global_init (void)
int parse_config_lines (void)
int set_modem_arg (struct modem *mdm, char *arg, char *arg_end)
int set_network_arg (struct network *net, char *arg, char *arg_end)
static int sms_exit (void)
static MODULE_VERSION int sms_init (void)
static void sms_process (int)
static int w_sms_send_msg (struct sip_msg *, char *, char *)
static int w_sms_send_msg_to_net (struct sip_msg *, char *, char *)

Variables

static cmd_export_t cmds []
int default_net = 0
char * default_net_str = 0
str domain
char * domain_str = 0
struct module_exports exports
char * links_config = 0
int max_sms_parts = MAX_SMS_PARTS
char * modems_config = 0
char * networks_config = 0
static param_export_t params []
int * queued_msgs = 0
static proc_export_t sms_procs []
int sms_report_type = NO_REPORT
struct tm_binds tmb
int use_contact = 0


Define Documentation

#define eat_spaces ( _p   ) 

Value:

while( *(_p)==' ' || *(_p)=='\t' ){\
   (_p)++;}

Definition at line 152 of file sms.c.


Function Documentation

static int fixup_sms_send_msg_to_net ( void **  param,
int  param_no 
) [static]

Definition at line 128 of file sms.c.

References E_UNSPEC, LM_ERR, module_exports::name, networks, nr_of_networks, and pkg_free.

int global_init ( void   ) 

int parse_config_lines ( void   ) 

int set_modem_arg ( struct modem mdm,
char *  arg,
char *  arg_end 
)

int set_network_arg ( struct network net,
char *  arg,
char *  arg_end 
)

Definition at line 249 of file sms.c.

References LM_ERR, network::max_sms_per_call, and str2s().

Referenced by parse_config_lines().

static int sms_exit ( void   )  [static]

static int sms_init ( void   )  [static]

Definition at line 604 of file sms.c.

References global_init(), nr_of_modems, and parse_config_lines().

void sms_process ( int  rank  )  [static]

Definition at line 596 of file sms.c.

References modem_process(), and modems.

static int w_sms_send_msg ( struct sip_msg msg,
char *  foo,
char *  bar 
) [static]

Definition at line 635 of file sms.c.

References default_net, and push_on_network().

static int w_sms_send_msg_to_net ( struct sip_msg msg,
char *  net_nr,
char *  foo 
) [static]

Definition at line 643 of file sms.c.

References push_on_network().


Variable Documentation

cmd_export_t cmds[] [static]

Definition at line 88 of file sms.c.

int default_net = 0

Definition at line 73 of file sms.c.

Referenced by parse_config_lines(), and w_sms_send_msg().

char* default_net_str = 0

Definition at line 69 of file sms.c.

Referenced by parse_config_lines().

char* domain_str = 0

Definition at line 70 of file sms.c.

Referenced by global_init(), and sms_exit().

Definition at line 110 of file sms.c.

char* links_config = 0

Definition at line 68 of file sms.c.

Referenced by parse_config_lines().

int max_sms_parts = MAX_SMS_PARTS

Definition at line 74 of file sms.c.

Referenced by send_as_sms().

char* modems_config = 0

Definition at line 67 of file sms.c.

Referenced by parse_config_lines().

char* networks_config = 0

Definition at line 66 of file sms.c.

Referenced by parse_config_lines().

param_export_t params[] [static]

Definition at line 97 of file sms.c.

int* queued_msgs = 0

Definition at line 76 of file sms.c.

Referenced by global_init(), push_on_network(), and sms_exit().

Initial value:

 {
   {"SMS receiver",  0,  0, sms_process, 0 },
   {0,0,0,0,0}
}

Definition at line 82 of file sms.c.

int sms_report_type = NO_REPORT

Definition at line 78 of file sms.c.

struct tm_binds tmb

TM bind

Definition at line 79 of file sms.c.

int use_contact = 0

Definition at line 77 of file sms.c.

Referenced by send_sip_msg_request().


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