#include <ctype.h>#include "../../parser/parse_from.h"#include "../../mem/mem.h"#include "../../data_lump.h"#include "../tm/h_table.h"#include "../tm/tm_load.h"#include "../rr/api.h"#include "from.h"

Go to the source code of this file.
Defines | |
| #define | text3B64_len(_l) ( ( ((_l)+2)/3 ) << 2 ) |
Functions | |
| static int | decode_from (str *src, str *dst) |
| static int | encode_from (str *src, str *dst) |
| static struct lump * | get_fdisplay_anchor (struct sip_msg *msg, struct to_body *from, str *dsp) |
| void | init_from_replacer (void) |
| int | replace_from (struct sip_msg *msg, str *from_dsp, str *from_uri) |
| int | restore_from (struct sip_msg *msg, int *is_from) |
| static void | restore_from_reply (struct cell *t, int type, struct tmcb_params *p) |
| static void | restore_to_reply (struct cell *t, int type, struct tmcb_params *p) |
| void | rr_checker (struct sip_msg *msg, str *r_param, void *cb_param) |
Variables | |
| static int | dec_table64 [256] |
| static char | enc_table64 [] |
| int | from_restore_mode |
| static int | msg_id = 0 |
| str | rr_param |
| str | uac_passwd |
| struct rr_binds | uac_rrb |
| struct tm_binds | uac_tmb |
| #define text3B64_len | ( | _l | ) | ( ( ((_l)+2)/3 ) << 2 ) |
Definition at line 118 of file from.c.
References buf, dec_table64, _str::len, LM_ERR, MAX_URI_SIZE, and _str::s.
Referenced by restore_from().
Definition at line 78 of file from.c.
References buf, enc_table64, _str::len, LM_ERR, MAX_URI_SIZE, _str::s, and text3B64_len.
Referenced by replace_from().
| static struct lump* get_fdisplay_anchor | ( | struct sip_msg * | msg, | |
| struct to_body * | from, | |||
| str * | dsp | |||
| ) | [static, read] |
Definition at line 165 of file from.c.
References anchor_lump(), sip_msg::buf, sip_msg::from, insert_new_lump_after(), _str::len, LM_ERR, hdr_field::name, pkg_free, pkg_malloc, _str::s, and to_body::uri.
Referenced by replace_from().
| void init_from_replacer | ( | void | ) |
Definition at line 67 of file from.c.
References dec_table64, and enc_table64.
Referenced by mod_init().
Definition at line 219 of file from.c.
References rr_binds::add_rr_param, sip_msg::buf, buf, del_lump(), to_body::display, encode_from(), to_body::error, FL_USE_UAC_FROM, sip_msg::from, FROM_AUTO_RESTORE, FROM_NO_RESTORE, from_restore_mode, get_fdisplay_anchor(), get_to, HDR_TO_F, insert_new_lump_after(), _str::len, LM_DBG, LM_ERR, MAX_URI_SIZE, sip_msg::msg_flags, to_body::param_lst, parse_from_header(), parse_headers(), hdr_field::parsed, pkg_free, pkg_malloc, tm_binds::register_tmcb, replace(), restore_from_reply(), _str::s, TMCB_RESPONSE_IN, sip_msg::to, uac_rrb, uac_tmb, and to_body::uri.
Referenced by w_replace_from1(), and w_replace_from2().
| int restore_from | ( | struct sip_msg * | msg, | |
| int * | is_from | |||
| ) |
Definition at line 409 of file from.c.
References sip_msg::buf, decode_from(), del_lump(), FL_USE_UAC_FROM, FL_USE_UAC_TO, sip_msg::from, rr_binds::get_route_param, HDR_TO_F, insert_new_lump_after(), rr_binds::is_direction, _str::len, LM_DBG, LM_ERR, sip_msg::msg_flags, parse_from_header(), parse_headers(), hdr_field::parsed, pkg_free, pkg_malloc, RR_FLOW_UPSTREAM, _str::s, sip_msg::to, and uac_rrb.
Referenced by rr_checker(), and w_restore_from().
| void restore_from_reply | ( | struct cell * | t, | |
| int | type, | |||
| struct tmcb_params * | p | |||
| ) | [static] |
Definition at line 539 of file from.c.
References sip_msg::buf, tmcb_params::code, del_lump(), sip_msg::from, sip_msg::id, insert_new_lump_after(), _str::len, hdr_field::len, LM_DBG, LM_ERR, msg_id, hdr_field::name, parse_from_header(), pkg_malloc, ua_server::request, tmcb_params::rpl, _str::s, and cell::uas.
Referenced by replace_from(), and rr_checker().
| void restore_to_reply | ( | struct cell * | t, | |
| int | type, | |||
| struct tmcb_params * | p | |||
| ) | [static] |
Definition at line 594 of file from.c.
References sip_msg::buf, del_lump(), HDR_TO_F, insert_new_lump_after(), _str::len, hdr_field::len, LM_DBG, LM_ERR, hdr_field::name, parse_headers(), pkg_malloc, ua_server::request, tmcb_params::rpl, _str::s, sip_msg::to, and cell::uas.
Referenced by rr_checker().
Definition at line 517 of file from.c.
References LM_ERR, tm_binds::register_tmcb, restore_from(), restore_from_reply(), restore_to_reply(), TMCB_RESPONSE_IN, and uac_tmb.
Referenced by mod_init().
int dec_table64[256] [static] |
char enc_table64[] [static] |
Initial value:
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz0123456789+/"
Definition at line 54 of file from.c.
Referenced by encode_from(), and init_from_replacer().
int msg_id = 0 [static] |
Definition at line 65 of file from.c.
Referenced by add_diversion_helper(), and restore_from_reply().
Definition at line 67 of file uac/uac.c.
Referenced by mod_init(), replace_from(), and restore_from().
1.5.6