#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>

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 |
Definition in file sl_funcs.c.
| int sl_filter_ACK | ( | struct sip_msg * | msg, | |
| void * | bar | |||
| ) |
Filter ACKs
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().
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 | ) |
Reply an SIP error
Definition at line 247 of file sl_funcs.c.
References err2reason_phrase(), if_update_stat, _str::len, LM_DBG, LM_ERR, MAX_REASON_LEN, prev_ser_error, _str::s, sent_err_rpls, sl_enable_stats, and sl_send_reply_helper().
Referenced by w_sl_reply_error().
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().
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().
sl_send_reply helper function
Definition at line 153 of file sl_funcs.c.
References add_lump_rpl(), receive_info::bind_address, buf, build_res_buf_from_sip_req(), calc_crc_suffix(), sip_msg::first_line, get_ticks(), get_to, HDR_TO_F, via_body::host, _str::len, LM_ERR, LUMP_RPL_HDR, METHOD_ACK, mhomed, msg_send(), NULL, parse_headers(), pkg_free, print_dset(), receive_info::proto, receive_info::proto_reserved1, sip_msg::rcv, reply_to_via, msg_start::request, run_sl_callbacks(), _str::s, SL_RPL_WAIT_TIME, sl_timeout, SLCB_REPLY_OUT, tag_suffix, sip_msg::to, msg_start::u, update_sl_reply_stat(), update_sock_struct_from_ip, update_sock_struct_from_via(), and sip_msg::via1.
Referenced by sl_reply_error(), sl_send_reply(), and sl_send_reply_dlg().
| 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().
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().
1.5.6