#include "../str.h"


Go to the source code of this file.
Data Structures | |
| struct | hdr_field |
Defines | |
| #define | HDR_ACCEPT_F HDR_F_DEF(ACCEPT) |
| #define | HDR_ACCEPTDISPOSITION_F HDR_F_DEF(ACCEPTDISPOSITION) |
| #define | HDR_ACCEPTLANGUAGE_F HDR_F_DEF(ACCEPTLANGUAGE) |
| #define | HDR_ALLOW_F HDR_F_DEF(ALLOW) |
| #define | HDR_AUTHORIZATION_F HDR_F_DEF(AUTHORIZATION) |
| #define | HDR_CALLID_F HDR_F_DEF(CALLID) |
| #define | HDR_CONTACT_F HDR_F_DEF(CONTACT) |
| #define | HDR_CONTENTDISPOSITION_F HDR_F_DEF(CONTENTDISPOSITION) |
| #define | HDR_CONTENTLENGTH_F HDR_F_DEF(CONTENTLENGTH) |
| #define | HDR_CONTENTTYPE_F HDR_F_DEF(CONTENTTYPE) |
| #define | HDR_CSEQ_F HDR_F_DEF(CSEQ) |
| #define | HDR_DIVERSION_F HDR_F_DEF(DIVERSION) |
| #define | HDR_EOH_F HDR_F_DEF(EOH) |
| #define | HDR_EVENT_F HDR_F_DEF(EVENT) |
| #define | HDR_EXPIRES_F HDR_F_DEF(EXPIRES) |
| #define | HDR_F_DEF(name) HDR_T2F(HDR_##name##_T) |
| #define | HDR_FROM_F HDR_F_DEF(FROM) |
| #define | HDR_MAXFORWARDS_F HDR_F_DEF(MAXFORWARDS) |
| #define | HDR_MIN_SE_F HDR_F_DEF(MIN_SE) |
| #define | HDR_ORGANIZATION_F HDR_F_DEF(ORGANIZATION) |
| #define | HDR_OTHER_F HDR_F_DEF(OTHER) |
| #define | HDR_PAI_F HDR_F_DEF(PAI) |
| #define | HDR_PATH_F HDR_F_DEF(PATH) |
| #define | HDR_PPI_F HDR_F_DEF(PPI) |
| #define | HDR_PRIORITY_F HDR_F_DEF(PRIORITY) |
| #define | HDR_PRIVACY_F HDR_F_DEF(PRIVACY) |
| #define | HDR_PROXYAUTH_F HDR_F_DEF(PROXYAUTH) |
| #define | HDR_PROXYREQUIRE_F HDR_F_DEF(PROXYREQUIRE) |
| #define | HDR_RECORDROUTE_F HDR_F_DEF(RECORDROUTE) |
| #define | HDR_REFER_TO_F HDR_F_DEF(REFER_TO) |
| #define | HDR_RETRY_AFTER_F HDR_F_DEF(RETRY_AFTER) |
| #define | HDR_ROUTE_F HDR_F_DEF(ROUTE) |
| #define | HDR_RPID_F HDR_F_DEF(RPID) |
| #define | HDR_SESSION_EXPIRES_F HDR_F_DEF(SESSION_EXPIRES) |
| #define | HDR_SUBJECT_F HDR_F_DEF(SUBJECT) |
| #define | HDR_SUPPORTED_F HDR_F_DEF(SUPPORTED) |
| #define | HDR_T2F(type) (((type)!=HDR_EOH_T)?((hdr_flags_t)1<<(type)):(~(hdr_flags_t)0)) |
| #define | HDR_TO_F HDR_F_DEF(TO) |
| #define | HDR_UNSUPPORTED_F HDR_F_DEF(UNSUPPORTED) |
| #define | HDR_USERAGENT_F HDR_F_DEF(USERAGENT) |
| #define | HDR_VIA1_F HDR_F_DEF(VIA1) |
| #define | HDR_VIA2_F HDR_F_DEF(VIA2) |
| #define | HDR_VIA_F HDR_F_DEF(VIA) |
Typedefs | |
| typedef unsigned long long | hdr_flags_t |
| typedef enum _hdr_types_t | hdr_types_t |
Enumerations | |
| enum | _hdr_types_t { HDR_ERROR_T = -1, HDR_OTHER_T = 0, HDR_VIA_T = 1, HDR_VIA1_T = 1, HDR_VIA2_T = 2, HDR_TO_T, HDR_FROM_T, HDR_CSEQ_T, HDR_CALLID_T, HDR_CONTACT_T, HDR_MAXFORWARDS_T, HDR_ROUTE_T, HDR_RECORDROUTE_T, HDR_PATH_T, HDR_CONTENTTYPE_T, HDR_CONTENTLENGTH_T, HDR_AUTHORIZATION_T, HDR_EXPIRES_T, HDR_PROXYAUTH_T, HDR_SUPPORTED_T, HDR_PROXYREQUIRE_T, HDR_UNSUPPORTED_T, HDR_ALLOW_T, HDR_EVENT_T, HDR_ACCEPT_T, HDR_ACCEPTLANGUAGE_T, HDR_ORGANIZATION_T, HDR_PRIORITY_T, HDR_SUBJECT_T, HDR_USERAGENT_T, HDR_ACCEPTDISPOSITION_T, HDR_CONTENTDISPOSITION_T, HDR_DIVERSION_T, HDR_RPID_T, HDR_REFER_TO_T, HDR_SESSION_EXPIRES_T, HDR_MIN_SE_T, HDR_PPI_T, HDR_PAI_T, HDR_PRIVACY_T, HDR_RETRY_AFTER_T, HDR_EOH_T } |
Functions | |
| void | clean_hdr_field (struct hdr_field *hf) |
| void | dump_hdr_field (struct hdr_field *hf) |
| void | free_hdr_field_lst (struct hdr_field *hf) |
| static int | hdr_allocs_parse (struct hdr_field *hdr) |
Definition in file hf.h.
| #define HDR_ACCEPT_F HDR_F_DEF(ACCEPT) |
| #define HDR_ACCEPTDISPOSITION_F HDR_F_DEF(ACCEPTDISPOSITION) |
| #define HDR_ACCEPTLANGUAGE_F HDR_F_DEF(ACCEPTLANGUAGE) |
Definition at line 135 of file hf.h.
Referenced by parse_headers(), run_language_switch(), and run_proxy().
| #define HDR_ALLOW_F HDR_F_DEF(ALLOW) |
| #define HDR_AUTHORIZATION_F HDR_F_DEF(AUTHORIZATION) |
Definition at line 126 of file hf.h.
Referenced by ds_hash_authusername(), find_credentials(), and parse_headers().
| #define HDR_CALLID_F HDR_F_DEF(CALLID) |
Definition at line 118 of file hf.h.
Referenced by ac_cancel(), ac_reply(), ac_uac_req(), acc_preparse_req(), add_cisco_vsa(), check_transaction_quadruple(), dlg_bridge_tm_callback(), dlg_new_dialog(), ds_hash_callid(), get_callid(), parse_headers(), pre_match_parse(), preprocess_request(), ring_filter(), ring_insert_callid(), sip_trace(), sipping_rpl_filter(), trace_onreply_in(), trace_onreply_out(), trace_onreq_in(), trace_onreq_out(), trace_sl_onreply_out(), validate_msg(), verify_destination(), and verify_source().
| #define HDR_CONTACT_F HDR_F_DEF(CONTACT) |
Definition at line 119 of file hf.h.
Referenced by add_contacts_to_loc_set(), check_register(), contact_iterator(), decode_contact_header(), dlg_confirmed_resp_uac(), dlg_request_uas(), encode_contact(), FixContact(), get_contact_uri(), parse_headers(), and populate_leg_info().
| #define HDR_CONTENTDISPOSITION_F HDR_F_DEF(CONTENTDISPOSITION) |
Definition at line 141 of file hf.h.
Referenced by parse_content_disposition(), and parse_headers().
| #define HDR_CONTENTLENGTH_F HDR_F_DEF(CONTENTLENGTH) |
Definition at line 125 of file hf.h.
Referenced by ac_cancel(), ac_reply(), ac_uac_req(), adjust_clen(), do_script_action(), has_body_f(), parse_headers(), patch_content_length(), and should_acc_reply().
| #define HDR_CONTENTTYPE_F HDR_F_DEF(CONTENTTYPE) |
| #define HDR_CSEQ_F HDR_F_DEF(CSEQ) |
Definition at line 117 of file hf.h.
Referenced by ac_cancel(), ac_reply(), ac_uac_req(), acc_preparse_req(), add_sdp(), check_transaction_quadruple(), dlg_bridge_tm_callback(), dlg_request_uas(), get_cseq_method(), get_cseq_number(), is_method_f(), parse_dlg(), parse_headers(), populate_leg_info(), preprocess_request(), remove_sdp(), sipping_rpl_filter(), sst_dialog_response_fwded_CB(), t_check(), and update_cseqs().
| #define HDR_DIVERSION_F HDR_F_DEF(DIVERSION) |
Definition at line 142 of file hf.h.
Referenced by add_diversion_helper(), parse_diversion_header(), and parse_headers().
| #define HDR_EOH_F HDR_F_DEF(EOH) |
Flags definitions (enums won't work with all the compilers (e.g. icc) due to the 64bit size)
Definition at line 111 of file hf.h.
Referenced by ac_cancel(), ac_reply(), ac_sl_msg(), ac_uac_req(), add_hf_helper(), add_sock_hdr(), append_header(), append_rpid_helper(), apply_urihdr_changes(), assemble_msg(), bla_handle_notify(), bla_set_flag(), build_path_vector(), build_res_buf_from_sip_req(), check_message_support(), decode_msg(), encode_msg(), extract_parsed_hdrs(), find_rem_target(), get_autenticate_hdr(), get_body(), get_register_expire(), get_sl_branch(), get_sock_hdr(), handle_publish(), handle_subscribe(), is_present_hf_f(), is_present_hf_re_f(), mi_tm_uac_dlg(), NAT_Keepalive(), Notify2Xmpp(), ospAppendHeader(), ospGetOspHeader(), parse_allow(), parse_headers(), parse_message(), parse_supported(), populate_leg_info(), print_msg_info(), publ_cback_func(), remove_header(), remove_hf_f(), remove_hf_re_f(), request2dlg(), response2dlg(), rls_handle_notify(), rls_handle_subscribe(), save_ruri(), send_ack(), set_env(), subs_cback_func(), t_check(), t_newtran(), update_contact(), verify_source(), and warning_builder().
| #define HDR_EVENT_F HDR_F_DEF(EVENT) |
| #define HDR_EXPIRES_F HDR_F_DEF(EXPIRES) |
| #define HDR_F_DEF | ( | name | ) | HDR_T2F(HDR_##name##_T) |
| #define HDR_FROM_F HDR_F_DEF(FROM) |
Definition at line 116 of file hf.h.
Referenced by ac_cancel(), ac_reply(), ac_uac_req(), acc_preparse_req(), allow_uri(), check_routing(), check_transaction_quadruple(), cmd_send_message(), do_load_gws(), func_handle_publish(), func_handle_subscribe(), func_send_message(), parse_dlg(), parse_from_header(), parse_headers(), validate_msg(), and xjab_manage_sipmsg().
| #define HDR_MAXFORWARDS_F HDR_F_DEF(MAXFORWARDS) |
| #define HDR_MIN_SE_F HDR_F_DEF(MIN_SE) |
| #define HDR_ORGANIZATION_F HDR_F_DEF(ORGANIZATION) |
Definition at line 136 of file hf.h.
Referenced by parse_headers(), run_proxy(), and run_string_switch().
| #define HDR_PAI_F HDR_F_DEF(PAI) |
| #define HDR_PATH_F HDR_F_DEF(PATH) |
| #define HDR_PPI_F HDR_F_DEF(PPI) |
| #define HDR_PRIORITY_F HDR_F_DEF(PRIORITY) |
Definition at line 137 of file hf.h.
Referenced by parse_headers(), run_priority_switch(), and run_proxy().
| #define HDR_PRIVACY_F HDR_F_DEF(PRIVACY) |
| #define HDR_PROXYAUTH_F HDR_F_DEF(PROXYAUTH) |
Definition at line 128 of file hf.h.
Referenced by ds_hash_authusername(), find_credentials(), and parse_headers().
| #define HDR_PROXYREQUIRE_F HDR_F_DEF(PROXYREQUIRE) |
| #define HDR_RECORDROUTE_F HDR_F_DEF(RECORDROUTE) |
| #define HDR_REFER_TO_F HDR_F_DEF(REFER_TO) |
| #define HDR_RETRY_AFTER_F HDR_F_DEF(RETRY_AFTER) |
| #define HDR_ROUTE_F HDR_F_DEF(ROUTE) |
Definition at line 121 of file hf.h.
Referenced by ac_cancel(), ac_uac_req(), find_first_route(), find_next_route(), and parse_headers().
| #define HDR_RPID_F HDR_F_DEF(RPID) |
| #define HDR_SESSION_EXPIRES_F HDR_F_DEF(SESSION_EXPIRES) |
| #define HDR_SUBJECT_F HDR_F_DEF(SUBJECT) |
Definition at line 138 of file hf.h.
Referenced by parse_headers(), run_proxy(), and run_string_switch().
| #define HDR_SUPPORTED_F HDR_F_DEF(SUPPORTED) |
| #define HDR_T2F | ( | type | ) | (((type)!=HDR_EOH_T)?((hdr_flags_t)1<<(type)):(~(hdr_flags_t)0)) |
Type to flag conversion WARNING: HDR_ERROR_T has no corresponding FLAG!
Definition at line 101 of file hf.h.
Referenced by extract_allowed_headers(), and find_credentials().
| #define HDR_TO_F HDR_F_DEF(TO) |
Definition at line 115 of file hf.h.
Referenced by ac_cancel(), ac_reply(), ac_uac_req(), acc_onreply_in(), acc_preparse_req(), check_register(), check_to(), check_transaction_quadruple(), cmd_send_message(), dlg_bridge_tm_callback(), dlg_new_dialog(), dlg_onreply(), dlg_onroute(), ds_hash_touri(), eval_elem(), func_handle_publish(), func_handle_subscribe(), func_send_message(), get_dest_user(), get_realm(), get_source_uri(), get_to_uri(), get_uri(), has_totag(), is_preloaded(), m_dump(), ospGetToUserpart(), parse_dlg(), parse_headers(), pre_match_parse(), push_on_network(), replace_from(), restore_from(), restore_to_reply(), run_address_switch(), run_proxy(), send_ack(), sl_filter_ACK(), sl_send_reply_helper(), t_check(), t_reply_matching(), unmatched_totag(), validate_msg(), w_dlg_manage(), and xjab_manage_sipmsg().
| #define HDR_UNSUPPORTED_F HDR_F_DEF(UNSUPPORTED) |
| #define HDR_USERAGENT_F HDR_F_DEF(USERAGENT) |
Definition at line 139 of file hf.h.
Referenced by get_user_agent(), pack_ci(), parse_headers(), run_proxy(), and run_string_switch().
| #define HDR_VIA1_F HDR_F_DEF(VIA1) |
| #define HDR_VIA2_F HDR_F_DEF(VIA2) |
Definition at line 114 of file hf.h.
Referenced by forward_reply(), parse_headers(), preprocess_request(), and sipping_rpl_filter().
| #define HDR_VIA_F HDR_F_DEF(VIA) |
| typedef unsigned long long hdr_flags_t |
| typedef enum _hdr_types_t hdr_types_t |
| enum _hdr_types_t |
SIP Header types. if you add a new type:
| void clean_hdr_field | ( | struct hdr_field * | hf | ) |
Frees a hdr_field structure. WARNING: it frees only parsed (and not name.s, body.s)
| hf | header that should be freed |
Definition at line 59 of file hf.c.
References free_allow(), free_contact(), free_credentials(), free_cseq(), free_disposition(), free_event(), free_expires(), free_rr(), free_session_expires(), free_supported(), free_to(), free_via_list(), HDR_ACCEPT_T, HDR_ACCEPTDISPOSITION_T, HDR_ACCEPTLANGUAGE_T, HDR_ALLOW_T, HDR_AUTHORIZATION_T, HDR_CALLID_T, HDR_CONTACT_T, HDR_CONTENTDISPOSITION_T, HDR_CONTENTLENGTH_T, HDR_CONTENTTYPE_T, HDR_CSEQ_T, HDR_DIVERSION_T, HDR_EVENT_T, HDR_EXPIRES_T, HDR_FROM_T, HDR_MAXFORWARDS_T, HDR_MIN_SE_T, HDR_ORGANIZATION_T, HDR_PAI_T, HDR_PATH_T, HDR_PPI_T, HDR_PRIORITY_T, HDR_PRIVACY_T, HDR_PROXYAUTH_T, HDR_PROXYREQUIRE_T, HDR_RECORDROUTE_T, HDR_REFER_TO_T, HDR_RETRY_AFTER_T, HDR_ROUTE_T, HDR_RPID_T, HDR_SESSION_EXPIRES_T, HDR_SUBJECT_T, HDR_SUPPORTED_T, HDR_TO_T, HDR_UNSUPPORTED_T, HDR_USERAGENT_T, HDR_VIA_T, LM_CRIT, hdr_field::parsed, pkg_free, and hdr_field::type.
Referenced by clean_msg_clone(), free_hdr_field_lst(), and get_register_expire().
| void dump_hdr_field | ( | struct hdr_field * | hf | ) |
Output the contents of a header to the logging system with log level ERROR.
| hf | header that is dumped |
Definition at line 219 of file hf.c.
References hdr_field::body, _str::len, LM_ERR, hdr_field::name, hdr_field::next, hdr_field::parsed, _str::s, hdr_field::type, and ZSW.
| void free_hdr_field_lst | ( | struct hdr_field * | hf | ) |
Frees a hdr_field list. WARNING: frees only ->parsed and ->next
| hf | header field that should be freed |
Definition at line 207 of file hf.c.
References clean_hdr_field(), hdr_field::next, and pkg_free.
Referenced by ac_cancel(), ac_uac_req(), build_local(), free_sip_msg(), free_sip_msg_lite(), mi_tm_uac_dlg(), and shmcontact2dset().
| static int hdr_allocs_parse | ( | struct hdr_field * | hdr | ) | [inline, static] |
returns true if the header links allocated memory on parse field
Definition at line 172 of file hf.h.
References HDR_ACCEPT_T, HDR_AUTHORIZATION_T, HDR_CONTACT_T, HDR_CONTENTDISPOSITION_T, HDR_DIVERSION_T, HDR_EVENT_T, HDR_EXPIRES_T, HDR_FROM_T, HDR_PAI_T, HDR_PATH_T, HDR_PPI_T, HDR_PROXYAUTH_T, HDR_RECORDROUTE_T, HDR_REFER_TO_T, HDR_ROUTE_T, HDR_RPID_T, HDR_SESSION_EXPIRES_T, HDR_TO_T, HDR_VIA_T, and hdr_field::type.
Referenced by clean_msg_clone().
1.5.6