tm/tm.c File Reference

TM :: module core. More...

#include <stdio.h>
#include <string.h>
#include <netdb.h>
#include "../../sr_module.h"
#include "../../dprint.h"
#include "../../error.h"
#include "../../ut.h"
#include "../../script_cb.h"
#include "../../mi/mi.h"
#include "../../usr_avp.h"
#include "../../mem/mem.h"
#include "../../pvar.h"
#include "../../mod_fix.h"
#include "sip_msg.h"
#include "h_table.h"
#include "ut.h"
#include "t_reply.h"
#include "t_fwd.h"
#include "t_lookup.h"
#include "callid.h"
#include "t_cancel.h"
#include "t_fifo.h"
#include "mi.h"
#include "tm_load.h"
#include "t_serial.h"
#include "t_var.h"

Include dependency graph for tm/tm.c:

Go to the source code of this file.

Functions

static int child_init (int rank)
static int do_t_unref (struct sip_msg *foo, void *bar)
static int fixup_cancel_branches (void **param, int param_no)
static int fixup_local_replied (void **param, int param_no)
static int fixup_phostport2proxy (void **param, int param_no)
static int fixup_t_relay1 (void **param, int param_no)
static int fixup_t_relay2 (void **param, int param_no)
static int fixup_t_replicate (void **param, int param_no)
static int fixup_t_send_reply (void **param, int param_no)
static int flag_fixup (void **param, int param_no)
int load_tm (struct tm_binds *tmb)
static int mod_init (void)
static MODULE_VERSION int pv_get_tm_branch_idx (struct sip_msg *msg, pv_param_t *param, pv_value_t *res)
static int pv_get_tm_reply_code (struct sip_msg *msg, pv_param_t *param, pv_value_t *res)
static int script_init (struct sip_msg *foo, void *bar)
static int t_cancel_branches (struct sip_msg *msg, char *, char *)
static int t_check_status (struct sip_msg *msg, char *regexp, char *)
static int t_check_trans (struct sip_msg *msg, char *, char *)
static int t_flush_flags (struct sip_msg *msg, char *, char *)
static int t_local_replied (struct sip_msg *msg, char *type, char *)
static int t_relay_inerr2scripterr (void)
static int t_was_cancelled (struct sip_msg *msg, char *, char *)
static int w_pv_t_reply (struct sip_msg *msg, char *code, char *text)
static int w_t_newtran (struct sip_msg *p_msg, char *, char *)
static int w_t_on_branch (struct sip_msg *msg, char *go_to, char *)
static int w_t_on_negative (struct sip_msg *msg, char *go_to, char *)
static int w_t_on_reply (struct sip_msg *msg, char *go_to, char *)
static int w_t_relay (struct sip_msg *p_msg, char *proxy, char *flags)
static int w_t_release (struct sip_msg *msg, char *, char *)
static int w_t_replicate (struct sip_msg *p_msg, char *dst, char *)
static int w_t_reply (struct sip_msg *msg, char *code, char *text)

Variables

int _tm_branch_index
str auto_inv_100_reason = str_init("Giving a Try")
static cmd_export_t cmds []
static char * contacts_avp_param = NULL
struct module_exports exports
static char * fr_inv_timer_param = NULL
static char * fr_timer_param = NULL
static mi_export_t mi_cmds []
static pv_export_t mod_items []
static stat_export_t mod_stats []
static param_export_t params []
int tm_enable_stats = 1
stat_vartm_loc_rpls
stat_vartm_rcv_rpls
stat_vartm_rld_rpls
stat_vartm_trans_2xx
stat_vartm_trans_3xx
stat_vartm_trans_4xx
stat_vartm_trans_5xx
stat_vartm_trans_6xx
stat_vartm_trans_inuse
stat_vartm_uac_trans
stat_vartm_uas_trans


Detailed Description

TM :: module core.

Definition in file tm/tm.c.


Function Documentation

static int child_init ( int  rank  )  [static]

Definition at line 662 of file tm/tm.c.

References child_init_callid(), and LM_ERR.

static int do_t_unref ( struct sip_msg foo,
void *  bar 
) [static]

Definition at line 536 of file tm/tm.c.

References get_cancelled_t(), get_e2eack_t(), NULL, T_UNDEFINED, t_unref(), and t_unref_cell().

Referenced by mod_init().

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

Definition at line 1122 of file tm/tm.c.

References E_BUG, E_CFG, LM_ERR, and pkg_free.

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

Definition at line 464 of file tm/tm.c.

References E_BUG, E_CFG, LM_ERR, and pkg_free.

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

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

Definition at line 397 of file tm/tm.c.

References E_CFG, fixup_phostport2proxy(), flag_fixup(), and LM_ERR.

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

Definition at line 414 of file tm/tm.c.

References E_CFG, fixup_phostport2proxy(), flag_fixup(), and LM_ERR.

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

Definition at line 338 of file tm/tm.c.

References E_CFG, E_OUT_OF_MEM, flag_fixup(), _str::len, LM_ERR, pkg_malloc, _str::s, and s.

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

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

Definition at line 319 of file tm/tm.c.

References _str::len, pkg_free, _str::s, s, and strno2int().

Referenced by fixup_t_relay1(), fixup_t_relay2(), and fixup_t_replicate().

int load_tm ( struct tm_binds tmb  ) 

static int mod_init ( void   )  [static]

static int pv_get_tm_branch_idx ( struct sip_msg msg,
pv_param_t param,
pv_value_t res 
) [static]

static int pv_get_tm_reply_code ( struct sip_msg msg,
pv_param_t param,
pv_value_t res 
) [static]

static int script_init ( struct sip_msg foo,
void *  bar 
) [static]

static int t_cancel_branches ( struct sip_msg msg,
char *  k,
char *  s2 
) [inline, static]

static int t_check_status ( struct sip_msg msg,
char *  regexp,
char *  foo 
) [inline, static]

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

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

Definition at line 785 of file tm/tm.c.

References sip_msg::flags, get_t(), LM_ERR, ua_server::request, T_UNDEFINED, and cell::uas.

static int t_local_replied ( struct sip_msg msg,
char *  type,
char *  bar 
) [inline, static]

static int t_relay_inerr2scripterr ( void   )  [inline, static]

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

Definition at line 857 of file tm/tm.c.

References get_t(), LM_ERR, T_UNDEFINED, and was_cancelled.

static int w_pv_t_reply ( struct sip_msg msg,
char *  code,
char *  text 
) [inline, static]

Definition at line 903 of file tm/tm.c.

References _str::len, NULL, pv_printf_s(), str2int(), and w_t_reply().

static int w_t_newtran ( struct sip_msg p_msg,
char *  foo,
char *  bar 
) [inline, static]

Definition at line 939 of file tm/tm.c.

References t_newtran().

static int w_t_on_branch ( struct sip_msg msg,
char *  go_to,
char *  foo 
) [inline, static]

Definition at line 961 of file tm/tm.c.

References t_on_branch().

static int w_t_on_negative ( struct sip_msg msg,
char *  go_to,
char *  foo 
) [inline, static]

Definition at line 947 of file tm/tm.c.

References t_on_negative().

static int w_t_on_reply ( struct sip_msg msg,
char *  go_to,
char *  foo 
) [inline, static]

Definition at line 954 of file tm/tm.c.

References t_on_reply().

static int w_t_relay ( struct sip_msg p_msg,
char *  proxy,
char *  flags 
) [inline, static]

static int w_t_release ( struct sip_msg msg,
char *  str,
char *  str2 
) [inline, static]

Definition at line 928 of file tm/tm.c.

References get_t(), t_release_transaction(), and T_UNDEFINED.

static int w_t_replicate ( struct sip_msg p_msg,
char *  dst,
char *  flags 
) [inline, static]

Definition at line 968 of file tm/tm.c.

References t_replicate().

static int w_t_reply ( struct sip_msg msg,
char *  code,
char *  text 
) [inline, static]


Variable Documentation

Definition at line 73 of file t_fwd.c.

Referenced by pre_print_uac_request(), and reply_received().

str auto_inv_100_reason = str_init("Giving a Try")

Definition at line 146 of file tm/tm.c.

cmd_export_t cmds[] [static]

Definition at line 162 of file tm/tm.c.

char* contacts_avp_param = NULL [static]

Definition at line 142 of file tm/tm.c.

Referenced by mod_init().

Definition at line 301 of file tm/tm.c.

char* fr_inv_timer_param = NULL [static]

Definition at line 141 of file tm/tm.c.

Referenced by mod_init().

char* fr_timer_param = NULL [static]

Definition at line 140 of file tm/tm.c.

Referenced by mod_init().

mi_export_t mi_cmds[] [static]

Definition at line 292 of file tm/tm.c.

pv_export_t mod_items[] [static]

pseudo-variables exported by TM module

Definition at line 279 of file tm/tm.c.

Definition at line 260 of file tm/tm.c.

param_export_t params[] [static]

Definition at line 211 of file tm/tm.c.

int tm_enable_stats = 1

Definition at line 145 of file tm/tm.c.

Referenced by mod_init(), remove_from_hash_table_unsafe(), and reply_received().

Definition at line 151 of file tm/tm.c.

Definition at line 149 of file tm/tm.c.

Referenced by reply_received().

Definition at line 150 of file tm/tm.c.

Definition at line 154 of file tm/tm.c.

Definition at line 155 of file tm/tm.c.

Definition at line 156 of file tm/tm.c.

Definition at line 157 of file tm/tm.c.

Definition at line 158 of file tm/tm.c.

Definition at line 159 of file tm/tm.c.

Referenced by remove_from_hash_table_unsafe().

Definition at line 153 of file tm/tm.c.

Definition at line 152 of file tm/tm.c.


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