Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

action.h File Reference

#include "route_struct.h"
#include "parser/msg_parser.h"
#include <setjmp.h>

Go to the source code of this file.

Data Structures

struct  run_act_ctx

Defines

#define USE_LONGJMP
#define init_run_actions_ctx(ph)

Functions

int do_action (struct run_act_ctx *c, struct action *a, struct sip_msg *msg)
int run_actions (struct run_act_ctx *c, struct action *a, struct sip_msg *msg)


Define Documentation

#define init_run_actions_ctx ph   ) 
 

Value:

do{\
                (ph)->rec_lev=(ph)->run_flags=(ph)->last_retcode=0; \
        }while(0)

Definition at line 54 of file action.h.

Referenced by attr2uri(), cpl_proxy_to_loc_set(), dbops_foreach_func(), em_receive_request(), eval_stack_oper_func(), eval_while_func(), eval_while_stack_func(), exec_str(), next_contacts(), next_gw(), ops_pushto_avp(), prefix_route(), print_uac_request(), receive_msg(), reply_received(), run_failure_handlers(), run_onsend(), subst_user_f(), t_continue(), timer_handler(), and update_new_uri().

#define USE_LONGJMP
 

Definition at line 33 of file action.h.


Function Documentation

int do_action struct run_act_ctx c,
struct action a,
struct sip_msg msg
 

Definition at line 98 of file action.c.

References add_avp(), add_avp_before(), ADD_T, append_branch(), APPEND_BRANCH_T, ASSIGN_T, action_u_t::attr, AVP_CLASS_ALL, AVP_INDEX_ALL, avp_t, AVPFLAG_OPER_T, sip_msg::buf, onsend_info::buf, cmd_export_t, action_u_t::data, delete_avp(), DROP_T, sip_msg::dst_uri, ERROR_T, eval_expr(), EXEC_T, EXPR_ST, sip_msg::first_line, flag, flag_in_range(), flags, sip_uri::flags, usr_avp::flags, FORCE_RPORT_T, sip_msg::force_send_socket, FORCE_SEND_SOCKET_T, FORCE_TCP_ALIAS_T, forward_request(), FORWARD_SCTP_T, FORWARD_T, FORWARD_TCP_T, FORWARD_TLS_T, FORWARD_UDP_T, get_send_socket(), sip_uri::headers, sip_uri::host, dest_info::id, route_list::idx, IF_T, avp_spec::index, init_dest_info, isflagset(), ISFLAGSET_T, L_CRIT, L_ERR, L_NOTICE, L_WARN, run_act_ctx::last_retcode, sip_msg::len, onsend_info::len, len, _str::len, LEN_GT_T, LOG, LOG_, LOG_T, sip_uri::maddr_val, main_rt, MAX_URI_SIZE, MODEXP_ST, MODULE_T, sip_msg::msg_flags, int_str::n, avp_spec::name, sip_msg::new_uri, usr_avp::next, action_u_t::number, NUMBER_ST, p_onsend, sip_uri::params, parse_sip_msg_uri(), parse_uri(), sip_msg::parsed_uri, sip_msg::parsed_uri_ok, sip_uri::passwd, phone2tel, pkg_free, pkg_malloc, via_body::port, sip_uri::port, sip_uri::port_no, PREFIX_T, prev_ser_error, receive_info::proto, sip_uri::proto, dest_info::proto, PROTO_NONE, receive_info::proto_reserved1, PROTO_SCTP, PROTO_TCP, PROTO_TLS, PROTO_UDP, proxy2su(), proxy_mark(), sip_msg::rcv, msg_start::request, resetflag(), RESETFLAG_T, REVERT_URI_T, route_list::rlist, ROUTE_T, run_actions(), run_act_ctx::run_flags, run_select(), int_str::s, _str::s, s_sip, s_sips, s_tel, s_tels, search_avp_by_index(), search_first_avp(), search_next_avp(), action_u_t::select, dest_info::send_sock, SEND_T, SEND_TCP_T, ser_error, SET_ADV_ADDR_T, SET_ADV_PORT_T, sip_msg::set_global_address, sip_msg::set_global_port, SET_HOST_T, SET_HOSTPORT_T, SET_HOSTPORTTRANS_T, SET_PORT_T, SET_URI_T, SET_USER_T, SET_USERPASS_T, SET_USERPHONE_T, setflag(), SETFLAG_T, SIP_URI_T, SIPS_URI_T, st, action_u_t::str, str, action_u_t::string, STRIP_T, STRIP_TAIL_T, tcp_send(), tcpconn_add_alias(), TEL_URI_T, TELS_URI_T, dest_info::to, sip_uri::transport, avp_spec::type, sip_uri::type, action_u_t::type, action::type, msg_start::u, action_u_t::u, UDP_MTU_TRY_PROTO_T, udp_send(), msg_start::uri, URIPORT_ST, sip_uri::user, user, sip_uri::user_param_val, action::val, and sip_msg::via1.

Referenced by attr2uri(), cpl_proxy_to_loc_set(), eval_stack_oper_func(), exec_str(), next_contacts(), next_gw(), ops_pushto_avp(), run_actions(), subst_user_f(), and update_new_uri().

int run_actions struct run_act_ctx c,
struct action a,
struct sip_msg msg
 

Definition at line 1034 of file action.c.

References DBG, do_action(), sr_module::exports, run_act_ctx::jmp_env, L_ERR, run_act_ctx::last_retcode, LOG, module_exports::name, sr_module::next, action::next, module_exports::onbreak_f, run_act_ctx::rec_lev, RETURN_R_F, and run_act_ctx::run_flags.

Referenced by cpl_proxy_to_loc_set(), dbops_foreach_func(), do_action(), em_receive_request(), eval_elem(), eval_while_func(), eval_while_stack_func(), prefix_route(), print_uac_request(), receive_msg(), reply_received(), run_failure_handlers(), run_onsend(), t_continue(), and timer_handler().


Generated on Thu Jul 29 04:15:52 2010 for SIPExpressRouter by  doxygen 1.3.9.1