record.h File Reference

Route & Record-Route module. More...

#include "../../parser/msg_parser.h"
#include "../../str.h"

Include dependency graph for record.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int add_rr_param (struct sip_msg *msg, str *rr_param)
 Appends a new Record-Route parameter.
int record_route (struct sip_msg *_m, str *_param)
 Insert a new Record-Route header field with lr parameter.
int record_route_preset (struct sip_msg *_m, str *_data)
 Insert manually created Record-Route header.


Detailed Description

Route & Record-Route module.

Definition in file record.h.


Function Documentation

int add_rr_param ( struct sip_msg msg,
str rr_param 
)

Appends a new Record-Route parameter.

Parameters:
msg SIP message
rr_param RR parameter
Returns:
0 on success, -1 on failure

Definition at line 482 of file record.c.

References sip_msg::add_rm, enable_double_rr, get_rr_param_lump(), sip_msg::id, insert_rr_param_lump(), _str::len, LM_CRIT, LM_DBG, LM_ERR, root, RR_PARAM_BUF_SIZE, rr_param_msg, and _str::s.

Referenced by load_rr(), and w_add_rr_param().

int record_route ( struct sip_msg _m,
str params 
)

Insert a new Record-Route header field with lr parameter.

Insert a new Record-Route header field with lr parameter, and also 2nd one if it is enabled and the realm changed so the 2nd record-route header will be necessary.

Parameters:
_m SIP message
params RR parameter
Returns:
0 on success, negative on failure
Insert a new Record-Route header field and also 2nd one if it is enabled and the realm changed so the 2nd record-route header will be necessary.
Parameters:
_m SIP message
params RR parameter
Returns:
0 on success, negative on failure

Definition at line 277 of file record.c.

References add_username, anchor_lump(), append_fromtag, sip_msg::buf, build_rr(), COND_IF_DIFF_REALMS, enable_double_rr, sip_msg::from, get_username(), HDR_RECORDROUTE_T, sip_msg::headers, sip_msg::id, INBOUND, insert_cond_lump_after(), insert_cond_lump_before(), _str::len, LM_ERR, hdr_field::name, NULL, OUTBOUND, parse_from_header(), hdr_field::parsed, rr_param_msg, _str::s, to_body::tag_value, and user.

Referenced by assemble_msg(), db_restore(), get_database_info(), parse_headers(), sip_msg_cloner(), subs_cback_func(), and w_record_route().

int record_route_preset ( struct sip_msg _m,
str _data 
)

Insert manually created Record-Route header.

Insert manually created Record-Route header, no checks, no restrictions, always adds lr parameter, only fromtag is added automatically when requested. Allocates new private memory for this.

Parameters:
_m SIP message
_data manually created RR header
Returns:
1 on success, negative on failure

Definition at line 356 of file record.c.

References add_username, anchor_lump(), append_fromtag, sip_msg::buf, enable_full_lr, sip_msg::from, get_username(), HDR_RECORDROUTE_T, sip_msg::headers, insert_new_lump_after(), _str::len, LM_ERR, hdr_field::name, parse_from_header(), hdr_field::parsed, pkg_free, pkg_malloc, RR_FROMTAG, RR_FROMTAG_LEN, RR_LR, RR_LR_FULL, RR_LR_FULL_LEN, RR_LR_LEN, RR_PREFIX, RR_PREFIX_LEN, RR_TERM, RR_TERM_LEN, _str::s, to_body::tag_value, and user.

Referenced by w_record_route_preset().


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