parse_from.c File Reference

Parse from header. More...

#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"

Include dependency graph for parse_from.c:

Go to the source code of this file.

Functions

int parse_from_header (struct sip_msg *msg)
struct sip_uriparse_from_uri (struct sip_msg *msg)


Detailed Description

Parse from header.

Definition in file parse_from.c.


Function Documentation

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.

Parameters:
msg sip msg
Returns:
0 on success, negative result on failure.

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().

struct sip_uri* parse_from_uri ( struct sip_msg msg  )  [read]


Generated on Thu May 24 00:00:40 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6