sl_funcs.h File Reference

SL :: functions

More...

#include "../../parser/msg_parser.h"

Include dependency graph for sl_funcs.h:

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

Go to the source code of this file.

Defines

#define SL_RPL_WAIT_TIME   2
#define SL_TOTAG_SEPARATOR   '.'

Functions

int sl_filter_ACK (struct sip_msg *msg, void *foo)
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 *reason)
int sl_send_reply_dlg (struct sip_msg *msg, int code, str *reason, str *tag)
int sl_shutdown (void)
int sl_startup (void)


Detailed Description

SL :: functions

Definition in file sl_funcs.h.


Define Documentation

#define SL_RPL_WAIT_TIME   2

Definition at line 35 of file sl_funcs.h.

Referenced by sl_send_reply_helper().

#define SL_TOTAG_SEPARATOR   '.'

Definition at line 37 of file sl_funcs.h.

Referenced by sl_startup().


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_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().


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