Functions

modules_k/rr/record.h File Reference

Route & Record-Route module. More...

#include "../../parser/msg_parser.h"
#include "../../str.h"
Include dependency graph for modules_k/rr/record.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions


Detailed Description

Definition in file modules_k/rr/record.h.


Function Documentation

int add_rr_param ( struct sip_msg msg,
str rr_param 
)
Parameters:
msg SIP message
rr_param RR parameter
Returns:
0 on success, -1 on failure

Definition at line 665 of file modules_k/rr/record.c.

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

Here is the call graph for this function:

int record_route ( struct sip_msg _m,
str params 
)

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 278 of file modules_k/rr/record.c.

References add_username, anchor_lump(), append_fromtag, sip_msg::buf, build_rr(), enable_double_rr, get_username(), HDR_RECORDROUTE_T, sip_msg::headers, sip_msg::id, INBOUND, insert_cond_lump_after(), _str::len, hdr_field::name, OUTBOUND, parse_from_header(), hdr_field::parsed, and _str::s.

Referenced by sip_msg_shm_clone(), and w_record_route().

Here is the call graph for this function:

Here is the caller graph for this function:

int record_route_advertised_address ( struct sip_msg _m,
str _data 
)

Insert manually created Record-Route header, no checks, no restrictions, always adds lr parameter, fromtag is added automatically when requested, Allows addition of rr parameters using add_rr_param. Adds a 2nd header with the same details if the protocol changes and double rr enabled 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 576 of file modules_k/rr/record.c.

References add_username, anchor_lump(), append_fromtag, sip_msg::buf, enable_double_rr, get_username(), HDR_RECORDROUTE_T, sip_msg::headers, INBOUND, insert_cond_lump_after(), _str::len, hdr_field::name, OUTBOUND, parse_from_header(), hdr_field::parsed, and _str::s.

Referenced by w_record_route_advertised_address().

Here is the call graph for this function:

Here is the caller graph for this function:

int record_route_preset ( struct sip_msg _m,
str _data 
)

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 357 of file modules_k/rr/record.c.

References add_username, anchor_lump(), append_fromtag, sip_msg::buf, enable_full_lr, get_username(), HDR_RECORDROUTE_T, sip_msg::headers, _str::len, hdr_field::name, parse_from_header(), hdr_field::parsed, and _str::s.

Here is the call graph for this function: