#include <stdio.h>
#include <stdlib.h>
#include <regex.h>
#include "mem/mem.h"
#include "str.h"
#include "ut.h"
#include "error.h"
#include "pvar.h"
#include "mod_fix.h"

Go to the source code of this file.
Functions | |
| int | fixup_free_igp_pvar_pvar (void **param, int param_no) |
fixup free for functions that get three parameters
| |
| int | fixup_free_pvar (void **param) |
| |
| int | fixup_free_pvar_null (void **param, int param_no) |
fixup free for functions that get one parameter
| |
| int | fixup_free_pvar_pvar (void **param, int param_no) |
fixup free for functions that get two parameters
| |
| int | fixup_free_pvar_str (void **param, int param_no) |
fixup free for functions that get two parameters
| |
| int | fixup_free_pvar_str_str (void **param, int param_no) |
fixup free for functions that get three parameters
| |
| int | fixup_free_regexp (void **param) |
| |
| int | fixup_free_regexp_none (void **param, int param_no) |
| int | fixup_free_regexp_null (void **param, int param_no) |
| int | fixup_free_str (void **param) |
| |
| int | fixup_free_str_null (void **param, int param_no) |
fixup free for functions that get one parameter
| |
| int | fixup_free_str_str (void **param, int param_no) |
fixup free for functions that get two parameters
| |
| int | fixup_get_ivalue (struct sip_msg *msg, gparam_p gp, int *val) |
| |
| int | fixup_get_svalue (struct sip_msg *msg, gparam_p gp, str *val) |
| |
| int | fixup_igp (void **param) |
| |
| int | fixup_igp_igp (void **param, int param_no) |
fixup for functions that get two parameters
| |
| int | fixup_igp_null (void **param, int param_no) |
fixup for functions that get one parameter
| |
| int | fixup_igp_pvar_pvar (void **param, int param_no) |
fixup for functions that get three parameters
| |
| int | fixup_pvar (void **param) |
| |
| int | fixup_pvar_null (void **param, int param_no) |
fixup for functions that get one parameter
| |
| int | fixup_pvar_pvar (void **param, int param_no) |
fixup for functions that get two parameters
| |
| int | fixup_pvar_str (void **param, int param_no) |
fixup for functions that get two parameters
| |
| int | fixup_pvar_str_str (void **param, int param_no) |
fixup for functions that get three parameters
| |
| static int | fixup_regexp (void **param, int rflags) |
| |
| int | fixup_regexp_none (void **param, int param_no) |
fixup for functions that get two parameters
| |
| int | fixup_regexp_null (void **param, int param_no) |
fixup for functions that get one parameter
| |
| int | fixup_regexpNL_none (void **param, int param_no) |
fixup for functions that get two parameters
| |
| int | fixup_regexpNL_null (void **param, int param_no) |
fixup for functions that get one parameter
| |
| int | fixup_spve (void **param) |
| |
| int | fixup_spve_null (void **param, int param_no) |
fixup for functions that get one parameter
| |
| int | fixup_spve_spve (void **param, int param_no) |
fixup for functions that get two parameters
| |
| int | fixup_spve_str (void **param, int param_no) |
fixup for functions that get two parameters
| |
| int | fixup_spve_uint (void **param, int param_no) |
fixup for functions that get two parameters
| |
| int | fixup_str (void **param) |
| helper function Convert char* parameter to str* parameter | |
| int | fixup_str_null (void **param, int param_no) |
fixup for functions that get one parameter
| |
| int | fixup_str_str (void **param, int param_no) |
fixup for functions that get two parameters
| |
| int | fixup_uint (void **param) |
| |
| int | fixup_uint_null (void **param, int param_no) |
fixup for functions that get one parameter
| |
| int | fixup_uint_uint (void **param, int param_no) |
fixup for functions that get two parameters
| |
Definition in file mod_fix.c.
| int fixup_free_igp_pvar_pvar | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup free for functions that get three parameters
Definition at line 713 of file mod_fix.c.
References E_UNSPEC, fixup_free_pvar(), and LM_ERR.
| int fixup_free_pvar | ( | void ** | param | ) |
Definition at line 461 of file mod_fix.c.
References pv_spec_free().
Referenced by fixup_free_igp_pvar_pvar(), fixup_free_pvar_null(), fixup_free_pvar_pvar(), fixup_free_pvar_str(), and fixup_free_pvar_str_str().
| int fixup_free_pvar_null | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup free for functions that get one parameter
Definition at line 488 of file mod_fix.c.
References E_UNSPEC, fixup_free_pvar(), and LM_ERR.
Referenced by fixup_free_http_query().
| int fixup_free_pvar_pvar | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup free for functions that get two parameters
Definition at line 520 of file mod_fix.c.
References E_UNSPEC, fixup_free_pvar(), and LM_ERR.
| int fixup_free_pvar_str | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup free for functions that get two parameters
Definition at line 558 of file mod_fix.c.
References E_UNSPEC, fixup_free_pvar(), fixup_free_str(), and LM_ERR.
| int fixup_free_pvar_str_str | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup free for functions that get three parameters
Definition at line 598 of file mod_fix.c.
References E_UNSPEC, fixup_free_pvar(), fixup_free_str(), and LM_ERR.
| int fixup_free_regexp | ( | void ** | param | ) |
Definition at line 322 of file mod_fix.c.
References pkg_free.
Referenced by fixup_free_regexp_none(), and fixup_free_regexp_null().
| int fixup_free_regexp_none | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup free for functions that get two parameters
Definition at line 416 of file mod_fix.c.
References E_UNSPEC, fixup_free_regexp(), and LM_ERR.
Referenced by search_api(), and search_append_api().
| int fixup_free_regexp_null | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup free for functions that get one parameter
Definition at line 366 of file mod_fix.c.
References E_UNSPEC, fixup_free_regexp(), and LM_ERR.
| int fixup_free_str | ( | void ** | param | ) |
Definition at line 87 of file mod_fix.c.
References pkg_free.
Referenced by fixup_free_pvar_str(), fixup_free_pvar_str_str(), fixup_free_str_null(), and fixup_free_str_str().
| int fixup_free_str_null | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup free for functions that get one parameter
Definition at line 129 of file mod_fix.c.
References E_UNSPEC, fixup_free_str(), and LM_ERR.
| int fixup_free_str_str | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup free for functions that get two parameters
Definition at line 144 of file mod_fix.c.
References E_UNSPEC, fixup_free_str(), and LM_ERR.
Definition at line 729 of file mod_fix.c.
References _pv_value::flags, GPARAM_TYPE_INT, _gparam::ival, LM_ERR, pv_get_spec_value(), PV_VAL_INT, PV_VAL_NULL, _gparam::pvs, _pv_value::ri, _gparam::type, and _gparam::v.
Referenced by allow_address(), allow_source_address(), w_dlg_isflagset(), w_dlg_resetflag(), w_dlg_setflag(), w_ds_select_domain(), w_ds_select_dst(), w_prefix2domain_1(), and w_prefix2domain_2().
Definition at line 853 of file mod_fix.c.
References _pv_value::flags, GPARAM_TYPE_PVE, GPARAM_TYPE_PVS, GPARAM_TYPE_STR, LM_ERR, pv_get_spec_value(), pv_printf_s(), PV_VAL_NULL, PV_VAL_STR, _gparam::pve, _gparam::pvs, _pv_value::rs, _gparam::sval, _gparam::type, and _gparam::v.
Referenced by add_hf_helper(), alias_db_lookup(), append_to_reply_f(), authorize(), cfg_lock_helper(), challenge(), cmp_istr_f(), cmp_str_f(), cr_do_route(), cr_gp2id(), cr_load_next_domain(), cr_load_user_carrier(), http_query(), m_dump(), m_store(), pv_authorize(), pv_fetch_contacts(), radius_is_user_in(), radius_load_callee_avps(), radius_load_caller_avps(), sd_lookup(), set_body_f(), set_rpl_body_f(), unregister(), w_cmp_aor(), w_cmp_uri(), w_dlg_bridge(), w_dlg_get(), w_dlg_refer(), w_exec_avp(), w_exec_dset(), w_exec_msg(), w_pcre_match(), and w_pcre_match_group().
| int fixup_igp | ( | void ** | param | ) |
Definition at line 616 of file mod_fix.c.
References E_UNSPEC, GPARAM_TYPE_INT, GPARAM_TYPE_PVS, _gparam::ival, _str::len, LM_ERR, NULL, pkg_free, pkg_malloc, PV_MARKER, pv_parse_spec(), _gparam::pvs, _str::s, str2sint(), _gparam::type, and _gparam::v.
Referenced by fixup_igp_igp(), fixup_igp_null(), and fixup_igp_pvar_pvar().
| int fixup_igp_igp | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get two parameters
Definition at line 679 of file mod_fix.c.
References E_UNSPEC, fixup_igp(), and LM_ERR.
| int fixup_igp_null | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get one parameter
Definition at line 664 of file mod_fix.c.
References E_UNSPEC, fixup_igp(), and LM_ERR.
| int fixup_igp_pvar_pvar | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get three parameters
Definition at line 695 of file mod_fix.c.
References E_UNSPEC, fixup_igp(), fixup_pvar(), and LM_ERR.
| int fixup_pvar | ( | void ** | param | ) |
Definition at line 432 of file mod_fix.c.
References E_UNSPEC, _str::len, LM_ERR, pkg_free, pkg_malloc, pv_parse_spec(), PVT_NULL, _str::s, and _pv_spec::type.
Referenced by fixup_get_profile2(), fixup_http_query(), fixup_igp_pvar_pvar(), fixup_pvar_null(), fixup_pvar_pvar(), fixup_pvar_str(), fixup_pvar_str_str(), and fixup_stat().
| int fixup_pvar_null | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get one parameter
Definition at line 474 of file mod_fix.c.
References E_UNSPEC, fixup_pvar(), and LM_ERR.
| int fixup_pvar_pvar | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get two parameters
Definition at line 502 of file mod_fix.c.
References E_UNSPEC, fixup_pvar(), and LM_ERR.
| int fixup_pvar_str | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get two parameters
Definition at line 539 of file mod_fix.c.
References E_UNSPEC, fixup_pvar(), fixup_str(), and LM_ERR.
| int fixup_pvar_str_str | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get three parameters
Definition at line 578 of file mod_fix.c.
References E_UNSPEC, fixup_pvar(), fixup_str(), and LM_ERR.
| static int fixup_regexp | ( | void ** | param, | |
| int | rflags | |||
| ) | [static] |
Definition at line 299 of file mod_fix.c.
References E_BAD_RE, E_OUT_OF_MEM, LM_ERR, pkg_free, and pkg_malloc.
Referenced by fixup_regexp_none(), fixup_regexp_null(), fixup_regexpNL_none(), and fixup_regexpNL_null().
| int fixup_regexp_none | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get two parameters
Definition at line 381 of file mod_fix.c.
References E_UNSPEC, fixup_regexp(), and LM_ERR.
Referenced by search_api(), and search_append_api().
| int fixup_regexp_null | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get one parameter
Definition at line 337 of file mod_fix.c.
References E_UNSPEC, fixup_regexp(), and LM_ERR.
| int fixup_regexpNL_none | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get two parameters
Definition at line 399 of file mod_fix.c.
References E_UNSPEC, fixup_regexp(), and LM_ERR.
| int fixup_regexpNL_null | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get one parameter
Definition at line 352 of file mod_fix.c.
References E_UNSPEC, fixup_regexp(), and LM_ERR.
| int fixup_spve | ( | void ** | param | ) |
Definition at line 753 of file mod_fix.c.
References E_UNSPEC, _pv_spec::getf, GPARAM_TYPE_PVE, GPARAM_TYPE_STR, _str::len, LM_ERR, NULL, pkg_malloc, pv_elem_free_all(), pv_parse_format(), _gparam::pve, _str::s, _pv_elem::spec, _gparam::sval, _gparam::type, and _gparam::v.
Referenced by fixup_spve_null(), fixup_spve_spve(), fixup_spve_str(), and fixup_spve_uint().
| int fixup_spve_null | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get one parameter
Definition at line 788 of file mod_fix.c.
References E_UNSPEC, fixup_spve(), and LM_ERR.
Referenced by add_header_fixup(), auth_fixup(), avp_name_fixup(), carrier_fixup(), cr_load_next_domain_fixup(), cr_load_user_carrier_fixup(), cr_route_fixup(), domain_fixup(), exec_avp_fixup(), fetchc_fixup(), fixup_dlg_bridge(), fixup_dlg_refer(), fixup_http_query(), mod_init(), and unreg_fixup().
| int fixup_spve_spve | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get two parameters
Definition at line 803 of file mod_fix.c.
References E_UNSPEC, fixup_spve(), and LM_ERR.
| int fixup_spve_str | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get two parameters
Definition at line 836 of file mod_fix.c.
References E_UNSPEC, fixup_spve(), fixup_str(), and LM_ERR.
| int fixup_spve_uint | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get two parameters
Definition at line 818 of file mod_fix.c.
References E_UNSPEC, fixup_spve(), fixup_uint(), and LM_ERR.
| int fixup_str | ( | void ** | param | ) |
helper function Convert char* parameter to str* parameter
Definition at line 66 of file mod_fix.c.
References E_UNSPEC, _str::len, LM_ERR, pkg_malloc, _str::s, and s.
Referenced by fixup_pvar_str(), fixup_pvar_str_str(), fixup_spve_str(), fixup_str_null(), and fixup_str_str().
| int fixup_str_null | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get one parameter
Definition at line 100 of file mod_fix.c.
References E_UNSPEC, fixup_str(), and LM_ERR.
Referenced by fetchc_fixup().
| int fixup_str_str | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get two parameters
Definition at line 115 of file mod_fix.c.
References E_UNSPEC, fixup_str(), and LM_ERR.
| int fixup_uint | ( | void ** | param | ) |
Definition at line 160 of file mod_fix.c.
References E_CFG, _str::len, LM_ERR, pkg_free, _str::s, s, and str2int().
Referenced by fixup_spve_uint(), fixup_uint_null(), and fixup_uint_uint().
| int fixup_uint_null | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get one parameter
Definition at line 181 of file mod_fix.c.
References E_UNSPEC, fixup_uint(), and LM_ERR.
Referenced by fixup_fix_sdp().
| int fixup_uint_uint | ( | void ** | param, | |
| int | param_no | |||
| ) |
fixup for functions that get two parameters
Definition at line 196 of file mod_fix.c.
References E_UNSPEC, fixup_uint(), and LM_ERR.
1.5.6