#include "cpl_time.h"#include "../../parser/parse_from.h"#include "../../parser/parse_uri.h"


Go to the source code of this file.
Functions | |
| static int | is_lang_tag_matching (str *range, str *cpl_tag, str *cpl_subtag) |
| static char * | run_address_switch (struct cpl_interpreter *intr) |
| static char * | run_language_switch (struct cpl_interpreter *intr) |
| static char * | run_priority_switch (struct cpl_interpreter *intr) |
| static char * | run_string_switch (struct cpl_interpreter *intr) |
| static char * | run_time_switch (struct cpl_interpreter *intr) |
| static int | set_TZ (char *tz_env) |
Definition at line 866 of file cpl_switches.h.
References _str::len, LM_DBG, LM_ERR, and _str::s.
Referenced by run_language_switch().
| static char* run_address_switch | ( | struct cpl_interpreter * | intr | ) | [inline, static] |
Definition at line 35 of file cpl_switches.h.
References ADDRESS_NODE, ADDRESS_TYPE_VAL, ATTR_PTR, check_overflow_by_ptr, CONTAINS_ATTR, CPL_RUNTIME_ERROR, CPL_SCRIPT_ERROR, DEFAULT_ACTION, DESTINATION_VAL, DISPLAY_VAL, FIELD_ATTR, cpl_interpreter::from, get_basic_attr, get_first_child, get_from, GET_RURI, get_str_attr, get_to, HDR_TO_F, sip_uri::host, HOST_VAL, cpl_interpreter::ip, IS_ATTR, KID_OFFSET, _str::len, LM_DBG, LM_ERR, LM_WARN, cpl_interpreter::msg, NODE_TYPE, NOT_PRESENT_NODE, NR_OF_ATTR, NR_OF_KIDS, ORIGIN_VAL, ORIGINAL_DESTINATION_VAL, OTHERWISE_NODE, parse_from_header(), parse_headers(), parse_uri(), sip_uri::port, PORT_VAL, cpl_interpreter::ruri, _str::s, SIMPLE_NODE_SIZE, strcasestr_str(), SUBDOMAIN_OF_ATTR, SUBFIELD_ATTR, TEL_VAL, sip_msg::to, cpl_interpreter::to, UNDEF_CHAR, sip_uri::user, sip_uri::user_param_val, and USER_VAL.
Referenced by cpl_run_script().
| static char* run_language_switch | ( | struct cpl_interpreter * | intr | ) | [inline, static] |
Definition at line 951 of file cpl_switches.h.
References sip_msg::accept_language, cpl_interpreter::accept_language, ATTR_PTR, hdr_field::body, check_overflow_by_ptr, CPL_RUNTIME_ERROR, CPL_SCRIPT_ERROR, DEFAULT_ACTION, get_basic_attr, get_first_child, get_str_attr, HDR_ACCEPTLANGUAGE_F, cpl_interpreter::ip, is_lang_tag_matching(), KID_OFFSET, LANGUAGE_NODE, _str::len, LM_DBG, LM_ERR, MATCHES_SUBTAG_ATTR, MATCHES_TAG_ATTR, cpl_interpreter::msg, NODE_TYPE, NOT_PRESENT_NODE, NR_OF_ATTR, NR_OF_KIDS, OTHERWISE_NODE, parse_headers(), _str::s, SIMPLE_NODE_SIZE, STR_NOT_FOUND, cpl_interpreter::subject, and trim_len.
Referenced by cpl_run_script().
| static char* run_priority_switch | ( | struct cpl_interpreter * | intr | ) | [inline, static] |
Definition at line 462 of file cpl_switches.h.
References ATTR_PTR, hdr_field::body, check_overflow_by_ptr, CPL_RUNTIME_ERROR, CPL_SCRIPT_ERROR, DEFAULT_ACTION, EMERGENCY_STR, EMERGENCY_STR_LEN, EMERGENCY_VAL, EQUAL_ATTR, get_basic_attr, get_first_child, get_str_attr, GREATER_ATTR, HDR_PRIORITY_F, cpl_interpreter::ip, KID_OFFSET, _str::len, LESS_ATTR, LM_DBG, LM_ERR, LM_NOTICE, cpl_interpreter::msg, NODE_TYPE, NON_URGENT_STR, NON_URGENT_STR_LEN, NON_URGENT_VAL, NORMAL_STR, NORMAL_STR_LEN, NORMAL_VAL, NOT_PRESENT_NODE, NR_OF_ATTR, NR_OF_KIDS, OTHERWISE_NODE, parse_headers(), sip_msg::priority, cpl_interpreter::priority, PRIORITY_NODE, PRIOSTR_ATTR, _str::s, SIMPLE_NODE_SIZE, trim_len, UNKNOWN_PRIO_VAL, URGENT_STR, URGENT_STR_LEN, and URGENT_VAL.
Referenced by cpl_run_script().
| static char* run_string_switch | ( | struct cpl_interpreter * | intr | ) | [inline, static] |
Definition at line 267 of file cpl_switches.h.
References ATTR_PTR, hdr_field::body, check_overflow_by_ptr, CONTAINS_ATTR, CPL_RUNTIME_ERROR, CPL_SCRIPT_ERROR, DEFAULT_ACTION, FIELD_ATTR, get_basic_attr, get_first_child, get_str_attr, HDR_ORGANIZATION_F, HDR_SUBJECT_F, HDR_USERAGENT_F, cpl_interpreter::ip, IS_ATTR, KID_OFFSET, _str::len, LM_DBG, LM_ERR, cpl_interpreter::msg, NODE_TYPE, NOT_PRESENT_NODE, NR_OF_ATTR, NR_OF_KIDS, sip_msg::organization, cpl_interpreter::organization, ORGANIZATION_VAL, OTHERWISE_NODE, parse_headers(), _str::s, SIMPLE_NODE_SIZE, STR_NOT_FOUND, strcasestr_str(), STRING_NODE, sip_msg::subject, cpl_interpreter::subject, SUBJECT_VAL, trim_len, sip_msg::user_agent, cpl_interpreter::user_agent, and USER_AGENT_VAL.
Referenced by cpl_run_script().
| static char* run_time_switch | ( | struct cpl_interpreter * | intr | ) | [inline, static] |
Definition at line 675 of file cpl_switches.h.
References ac_tm_free(), ac_tm_set_time(), ATTR_PTR, BYDAY_ATTR, BYMONTH_ATTR, BYMONTHDAY_ATTR, BYWEEKNO_ATTR, BYYEARDAY_ATTR, check_overflow_by_ptr, check_tmrec(), cpl_env, CPL_RUNTIME_ERROR, CPL_SCRIPT_ERROR, DEFAULT_ACTION, DTEND_ATTR, DTSTART_ATTR, DURATION_ATTR, FREQ_ATTR, get_basic_attr, get_first_child, get_str_attr, INTERVAL_ATTR, cpl_interpreter::ip, KID_OFFSET, _str::len, LM_DBG, LM_ERR, NODE_TYPE, NOT_PRESENT_NODE, NR_OF_ATTR, NR_OF_KIDS, cpl_enviroment::orig_tz, OTHERWISE_NODE, cpl_interpreter::recv_time, _str::s, set_TZ(), SIMPLE_NODE_SIZE, TIME_NODE, tmrec_free(), tr_parse_byday(), tr_parse_bymday(), tr_parse_bymonth(), tr_parse_byweekno(), tr_parse_byyday(), tr_parse_dtend(), tr_parse_dtstart(), tr_parse_duration(), tr_parse_freq(), tr_parse_interval(), tr_parse_until(), tr_parse_wkst(), TZID_ATTR, UNTIL_ATTR, and WKST_ATTR.
Referenced by cpl_run_script().
| static int set_TZ | ( | char * | tz_env | ) | [inline, static] |
Definition at line 659 of file cpl_switches.h.
References LM_DBG, and LM_ERR.
Referenced by run_time_switch().
1.5.6