rr_mod.c File Reference

Route & Record-Route module. More...

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <regex.h>
#include "../../sr_module.h"
#include "../../ut.h"
#include "../../error.h"
#include "../../pvar.h"
#include "../../mem/mem.h"
#include "../../mod_fix.h"
#include "loose.h"
#include "record.h"
#include "rr_cb.h"
#include "api.h"

Include dependency graph for rr_mod.c:

Go to the source code of this file.

Functions

static int direction_fixup (void **param, int param_no)
static int it_list_fixup (void **param, int param_no)
static void mod_destroy (void)
static MODULE_VERSION int mod_init (void)
static int w_add_rr_param (struct sip_msg *, char *, char *)
static int w_check_route_param (struct sip_msg *, char *, char *)
static int w_is_direction (struct sip_msg *, char *, char *)
static int w_record_route (struct sip_msg *, char *, char *)
static int w_record_route_preset (struct sip_msg *, char *, char *)

Variables

int add_username = 0
int append_fromtag = 1
static cmd_export_t cmds []
 Exported functions.
int enable_double_rr = 1
int enable_full_lr = 0
struct module_exports exports
static unsigned int last_rr_msg
static param_export_t params []
 Exported parameters.


Detailed Description

Route & Record-Route module.

Definition in file rr_mod.c.


Function Documentation

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

Definition at line 169 of file rr_mod.c.

References append_fromtag, E_CFG, LM_ERR, pkg_free, RR_FLOW_DOWNSTREAM, RR_FLOW_UPSTREAM, and s.

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

Definition at line 151 of file rr_mod.c.

References E_UNSPEC, _str::len, LM_ERR, pv_parse_format(), _str::s, and s.

static void mod_destroy ( void   )  [static]

Definition at line 145 of file rr_mod.c.

References destroy_rrcb_lists().

static int mod_init ( void   )  [static]

Definition at line 127 of file rr_mod.c.

References _str::len, and _str::s.

static int w_add_rr_param ( struct sip_msg msg,
char *  key,
char *  foo 
) [static]

Definition at line 241 of file rr_mod.c.

References add_rr_param(), LM_ERR, pv_printf_s(), and s.

static int w_check_route_param ( struct sip_msg msg,
char *  re,
char *  foo 
) [static]

Definition at line 254 of file rr_mod.c.

References check_route_param().

static int w_is_direction ( struct sip_msg msg,
char *  dir,
char *  foo 
) [static]

Definition at line 261 of file rr_mod.c.

References is_direction().

static int w_record_route ( struct sip_msg msg,
char *  key,
char *  bar 
) [static]

Definition at line 199 of file rr_mod.c.

References sip_msg::id, last_rr_msg, LM_ERR, pv_printf_s(), record_route(), and s.

static int w_record_route_preset ( struct sip_msg msg,
char *  key,
char *  bar 
) [static]

Definition at line 220 of file rr_mod.c.

References sip_msg::id, last_rr_msg, LM_ERR, pv_printf_s(), record_route_preset(), and s.


Variable Documentation

int add_username = 0

do not add username by default

Definition at line 56 of file rr_mod.c.

Referenced by record_route(), and record_route_preset().

int append_fromtag = 1

append from tag by default

Definition at line 53 of file rr_mod.c.

Referenced by direction_fixup(), load_rr(), record_route(), and record_route_preset().

cmd_export_t cmds[] [static]

Exported functions.

Definition at line 76 of file rr_mod.c.

enable using of 2 RR by default

Definition at line 54 of file rr_mod.c.

Referenced by add_rr_param(), after_loose(), after_strict(), build_rr(), and record_route().

int enable_full_lr = 0

compatibilty mode disabled by default

Definition at line 55 of file rr_mod.c.

Referenced by build_rr(), and record_route_preset().

Definition at line 111 of file rr_mod.c.

unsigned int last_rr_msg [static]

Definition at line 58 of file rr_mod.c.

Referenced by w_record_route(), and w_record_route_preset().

param_export_t params[] [static]

Exported parameters.

Definition at line 99 of file rr_mod.c.


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