#include "../tm/h_table.h"#include "../../parser/contact/parse_contact.h"


Go to the source code of this file.
Defines | |
| #define | duplicate_str(_orig_, _new_) |
| #define | search_and_duplicate_hdr(_intr_, _field_, _name_, _sfoo_) |
Functions | |
| static int | add_contacts_to_loc_set (struct sip_msg *msg, struct location **loc_set) |
| static int | parse_q (str *q, unsigned int *prio) |
| static void | reply_callback (struct cell *t, int type, struct tmcb_params *ps) |
| static char * | run_proxy (struct cpl_interpreter *intr) |
| #define duplicate_str | ( | _orig_, | |||
| _new_ | ) |
Definition at line 33 of file cpl_proxy.h.
| #define search_and_duplicate_hdr | ( | _intr_, | |||
| _field_, | |||||
| _name_, | |||||
| _sfoo_ | ) |
| static int add_contacts_to_loc_set | ( | struct sip_msg * | msg, | |
| struct location ** | loc_set | |||
| ) | [inline, static] |
Definition at line 91 of file cpl_proxy.h.
References add_location(), sip_msg::contact, CPL_LOC_DUPL, HDR_CONTACT_F, _str::len, LM_ERR, contact::next, parse_contact(), parse_headers(), parse_q(), parse_uri(), hdr_field::parsed, contact::q, _str::s, and contact::uri.
Referenced by reply_callback().
| static int parse_q | ( | str * | q, | |
| unsigned int * | prio | |||
| ) | [inline, static] |
Definition at line 67 of file cpl_proxy.h.
References _str::len, LM_ERR, and _str::s.
Referenced by add_contacts_to_loc_set().
| static void reply_callback | ( | struct cell * | t, | |
| int | type, | |||
| struct tmcb_params * | ps | |||
| ) | [static] |
Definition at line 143 of file cpl_proxy.h.
References add_contacts_to_loc_set(), cpl_interpreter::proxy_st::busy, tmcb_params::code, CPL_PROXY_DONE, cpl_proxy_to_loc_set(), cpl_run_script(), cpl_interpreter::proxy_st::default_, DEFAULT_ACTION, cpl_interpreter::proxy_st::failure, FIRSTONLY_VAL, cpl_interpreter::flags, free_cpl_interpreter(), get_first_child, cpl_interpreter::ip, cpl_interpreter::proxy_st::last_to_proxy, LM_CRIT, LM_DBG, LM_ERR, LM_WARN, cpl_interpreter::loc_set, cpl_interpreter::msg, location::next, no_new_branches, cpl_interpreter::proxy_st::noanswer, cpl_interpreter::proxy_st::ordering, PARALLEL_VAL, tmcb_params::param, print_location_set(), cpl_interpreter::proxy, cpl_interpreter::proxy_st::recurse, cpl_interpreter::proxy_st::redirect, remove_first_location(), tmcb_params::req, tmcb_params::rpl, run_default(), SCRIPT_END, SCRIPT_FORMAT_ERROR, SCRIPT_RUN_ERROR, SCRIPT_TO_BE_CONTINUED, SEQUENTIAL_VAL, TMCB_ON_FAILURE, TMCB_RESPONSE_OUT, and was_cancelled.
Referenced by run_proxy().
| static char* run_proxy | ( | struct cpl_interpreter * | intr | ) | [inline, static] |
Definition at line 298 of file cpl_proxy.h.
References cpl_interpreter::accept_language, add_avp(), ATTR_PTR, cpl_interpreter::proxy_st::busy, BUSY_NODE, check_overflow_by_ptr, CPL_ACCEPTLANG_DUPLICATED, cpl_env, cpl_fct, CPL_FROM_DUPLICATED, CPL_IS_STATEFUL, CPL_ORGANIZATION_DUPLICATED, CPL_PRIORITY_DUPLICATED, CPL_PROXY_DONE, cpl_proxy_to_loc_set(), CPL_RUNTIME_ERROR, CPL_RURI_DUPLICATED, CPL_SCRIPT_ERROR, CPL_SUBJECT_DUPLICATED, CPL_TO_CONTINUE, CPL_TO_DUPLICATED, CPL_USERAGENT_DUPLICATED, cpl_interpreter::proxy_st::default_, DEFAULT_ACTION, DEFAULT_NODE, duplicate_str, EO_SCRIPT, cpl_interpreter::proxy_st::failure, FAILURE_NODE, FIRSTONLY_VAL, cpl_interpreter::flags, cpl_interpreter::from, get_basic_attr, get_first_child, get_from, GET_RURI, get_to, HDR_ACCEPTLANGUAGE_F, HDR_ORGANIZATION_F, HDR_PRIORITY_F, HDR_SUBJECT_F, HDR_TO_F, HDR_USERAGENT_F, cpl_interpreter::ip, KID_OFFSET, cpl_interpreter::proxy_st::last_to_proxy, LM_DBG, LM_ERR, cpl_interpreter::loc_set, cpl_interpreter::msg, int_str::n, location::next, NO_VAL, cpl_interpreter::proxy_st::noanswer, NOANSWER_NODE, NODE_TYPE, NR_OF_ATTR, NR_OF_KIDS, cpl_interpreter::proxy_st::ordering, ORDERING_ATTR, cpl_interpreter::organization, PARALLEL_VAL, parse_from_header(), parse_headers(), priority, cpl_interpreter::priority, cpl_interpreter::proxy, cpl_enviroment::proxy_recurse, cpl_interpreter::proxy_st::recurse, RECURSE_ATTR, cpl_interpreter::proxy_st::redirect, REDIRECTION_NODE, tm_binds::register_tmcb, remove_first_location(), reply_callback(), cpl_interpreter::ruri, _str::s, int_str::s, s, search_and_duplicate_hdr, SEQUENTIAL_VAL, SIMPLE_NODE_SIZE, STR_NOT_FOUND, cpl_interpreter::subject, tm_binds::t_newtran, TIMEOUT_ATTR, cpl_enviroment::timer_avp, cpl_enviroment::timer_avp_type, cpl_functions::tmb, TMCB_ON_FAILURE, TMCB_RESPONSE_OUT, sip_msg::to, cpl_interpreter::to, cpl_interpreter::user_agent, and YES_VAL.
Referenced by cpl_run_script().
1.5.6