#include "parse_from.h"
#include "parse_to.h"
#include "parse_uri.h"
#include <stdlib.h>
#include <string.h>
#include "../dprint.h"
#include "msg_parser.h"
#include "../ut.h"
#include "../errinfo.h"
#include "../mem/mem.h"

Go to the source code of this file.
Functions | |
| int | parse_from_header (struct sip_msg *msg) |
| struct sip_uri * | parse_from_uri (struct sip_msg *msg) |
Definition in file parse_from.c.
| int parse_from_header | ( | struct sip_msg * | msg | ) |
This method is used to parse the from header. It was decided not to parse anything in core that is not *needed* so this method gets called by rad_acc module and any other modules that needs the FROM header.
| msg | sip msg |
Definition at line 51 of file parse_from.c.
References hdr_field::body, to_body::error, sip_msg::from, HDR_FROM_F, _str::len, LM_ERR, OSER_EC_PARSER, OSER_EL_MEDIUM, PARSE_ERROR, parse_headers(), parse_to(), hdr_field::parsed, pkg_free, pkg_malloc, _str::s, set_err_info(), and set_err_reply().
Referenced by ac_uac_req(), acc_preparse_req(), allow_uri(), assemble_msg(), bla_handle_notify(), bla_set_flag(), check_from(), check_routing(), cmd_send_message(), dlg_bridge_tm_callback(), dlg_new_dialog(), do_load_gws(), ds_hash_fromuri(), eval_elem(), extract_sdialog_info(), func_handle_publish(), func_handle_subscribe(), func_send_message(), get_from_tag(), get_from_uri(), get_orig_user(), get_realm(), get_source_uri(), get_uri(), imc_manager(), is_direction(), is_from_user_enum_2(), m_store(), match_hash_table(), match_res(), mi_check_msg(), new_t(), Notify2Xmpp(), ospGetFromUserpart(), parse_dlg(), parse_from_uri(), pre_match_parse(), prefix2domain(), push_on_network(), record_route(), record_route_preset(), replace_from(), restore_from(), restore_from_reply(), rls_handle_notify(), rls_handle_subscribe(), run_address_switch(), run_proxy(), sip_trace(), subs_cback_func(), t_check(), trace_onreply_in(), trace_onreply_out(), trace_onreq_in(), trace_onreq_out(), trace_sl_onreply_out(), update_contact(), validate_msg(), verify_destination(), verify_source(), and xjab_manage_sipmsg().
Definition at line 96 of file parse_from.c.
References sip_msg::from, get_from, sip_uri::host, _str::len, LM_ERR, NULL, OSER_EC_PARSER, OSER_EL_MEDIUM, parse_from_header(), parse_uri(), to_body::parsed_uri, _str::s, set_err_info(), set_err_reply(), to_body::uri, and sip_uri::user.
Referenced by check_from(), get_realm(), get_uri_user(), get_username_domain(), is_from_local(), is_from_user_enum_2(), sd_lookup(), and tel2sip().
1.5.6