sl_funcs.c File Reference

SL :: functions

More...

#include "../../globals.h"
#include "../../forward.h"
#include "../../dprint.h"
#include "../../md5utils.h"
#include "../../msg_translator.h"
#include "../../udp_server.h"
#include "../../timer.h"
#include "../../mem/mem.h"
#include "../../mem/shm_mem.h"
#include "../../crc.h"
#include "../../dset.h"
#include "../../data_lump_rpl.h"
#include "../../action.h"
#include "../../config.h"
#include "../../tags.h"
#include "sl.h"
#include "sl_funcs.h"
#include "sl_cb.h"
#include "../../usr_avp.h"
#include <string.h>

Include dependency graph for sl_funcs.c:

Go to the source code of this file.

Functions

int sl_filter_ACK (struct sip_msg *msg, void *bar)
int sl_get_reply_totag (struct sip_msg *msg, str *totag)
int sl_reply_error (struct sip_msg *msg)
int sl_send_reply (struct sip_msg *msg, int code, str *text)
int sl_send_reply_dlg (struct sip_msg *msg, int code, str *text, str *tag)
int sl_send_reply_helper (struct sip_msg *msg, int code, str *text, str *tag)
int sl_shutdown (void)
int sl_startup (void)
static void update_sl_reply_stat (int code)

Variables

static str sl_tag = {sl_tag_buf,TOTAG_VALUE_LEN}
static char sl_tag_buf [TOTAG_VALUE_LEN]
static unsigned int * sl_timeout = 0
static char * tag_suffix


Detailed Description

SL :: functions

Definition in file sl_funcs.c.


Function Documentation

int sl_filter_ACK ( struct sip_msg msg,
void *  bar 
)

Filter ACKs

Returns:
0 for ACKs to a local reply, -1 on error, 1 is not an ACK or a non-local ACK

Definition at line 277 of file sl_funcs.c.

References calc_crc_suffix(), sip_msg::first_line, get_ticks(), get_to, HDR_TO_F, if_update_stat, _str::len, LM_DBG, LM_ERR, METHOD_ACK, parse_headers(), rcv_acks, msg_start::request, run_sl_callbacks(), _str::s, sl_enable_stats, sl_timeout, SLCB_ACK_IN, tag_suffix, sip_msg::to, TOTAG_VALUE_LEN, and msg_start::u.

Referenced by mod_init().

int sl_get_reply_totag ( struct sip_msg msg,
str totag 
)

Definition at line 143 of file sl_funcs.c.

References calc_crc_suffix(), NULL, and tag_suffix.

Referenced by get_reply_totag(), and load_sl().

int sl_reply_error ( struct sip_msg msg  ) 

int sl_send_reply ( struct sip_msg msg,
int  code,
str text 
)

small wrapper around sl_send_reply_helper

Definition at line 233 of file sl_funcs.c.

References sl_send_reply_helper().

Referenced by load_sl(), send_reply(), and w_sl_send_reply().

int sl_send_reply_dlg ( struct sip_msg msg,
int  code,
str text,
str tag 
)

small wrapper around sl_send_reply_helper

Definition at line 240 of file sl_funcs.c.

References sl_send_reply_helper().

Referenced by load_sl().

int sl_send_reply_helper ( struct sip_msg msg,
int  code,
str text,
str tag 
)

int sl_shutdown ( void   ) 

SL shutdown helper

Definition at line 101 of file sl_funcs.c.

References shm_free, and sl_timeout.

Referenced by mod_destroy().

int sl_startup ( void   ) 

SL startup helper

Definition at line 80 of file sl_funcs.c.

References get_ticks(), init_tags(), LM_ERR, _str::s, shm_malloc(), sl_timeout, SL_TOTAG_SEPARATOR, and tag_suffix.

Referenced by mod_init().

static void update_sl_reply_stat ( int  code  )  [inline, static]

Take care of the statistics associated with numerical codes and replies

Definition at line 110 of file sl_funcs.c.

References get_stat_var_from_num_code, NULL, sent_rpls, sl_enable_stats, tx_1xx_rpls, tx_2xx_rpls, tx_3xx_rpls, tx_4xx_rpls, tx_5xx_rpls, tx_6xx_rpls, and update_stat.

Referenced by sl_send_reply_helper().


Variable Documentation

str sl_tag = {sl_tag_buf,TOTAG_VALUE_LEN} [static]

Definition at line 71 of file sl_funcs.c.

char sl_tag_buf[TOTAG_VALUE_LEN] [static]

Definition at line 70 of file sl_funcs.c.

unsigned int* sl_timeout = 0 [static]

Definition at line 76 of file sl_funcs.c.

Referenced by sl_filter_ACK(), sl_send_reply_helper(), sl_shutdown(), and sl_startup().

char* tag_suffix [static]

Definition at line 73 of file sl_funcs.c.

Referenced by sl_filter_ACK(), sl_get_reply_totag(), sl_send_reply_helper(), and sl_startup().


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