Defines | Functions | Variables

pv_trans.c File Reference

Support for transformations. More...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <sys/types.h>
#include <unistd.h>
#include "../../dprint.h"
#include "../../mem/mem.h"
#include "../../ut.h"
#include "../../trim.h"
#include "../../pvapi.h"
#include "../../dset.h"
#include "../../parser/parse_param.h"
#include "../../parser/parse_uri.h"
#include "../../parser/parse_to.h"
#include "../../parser/parse_nameaddr.h"
#include "../../lib/kcore/strcommon.h"
#include "pv_trans.h"
Include dependency graph for pv_trans.c:

Go to the source code of this file.

Defines

Functions

Variables


Detailed Description

Definition in file pv_trans.c.


Function Documentation

int tr_eval_line ( struct sip_msg msg,
tr_param_t *  tp,
int  subtype,
pv_value_t *  val 
)
Parameters:
msg SIP message
tp transformation
subtype transformation type
val pseudo-variable
Returns:
0 on success, -1 on error

Definition at line 1367 of file pv_trans.c.

References int2str(), _str::len, and _str::s.

Here is the call graph for this function:

int tr_eval_nameaddr ( struct sip_msg msg,
tr_param_t *  tp,
int  subtype,
pv_value_t *  val 
)
Parameters:
msg SIP message
tp transformation
subtype transformation type
val pseudo-variable
Returns:
0 on success, -1 on error

Definition at line 1167 of file pv_trans.c.

References int2str(), name_addr::len, _str::len, name_addr::name, parse_nameaddr(), _str::s, and name_addr::uri.

Here is the call graph for this function:

int tr_eval_paramlist ( struct sip_msg msg,
tr_param_t *  tp,
int  subtype,
pv_value_t *  val 
)
Parameters:
msg SIP message
tp transformation
subtype transformation type
val pseudo-variable
Returns:
0 on success, -1 on error

Definition at line 940 of file pv_trans.c.

References param::body, CLASS_ANY, free_params(), int2str(), _str::len, param::name, param::next, parse_params(), and _str::s.

Here is the call graph for this function:

int tr_eval_string ( struct sip_msg msg,
tr_param_t *  tp,
int  subtype,
pv_value_t *  val 
)
Parameters:
msg SIP message
tp transformation
subtype transformation type
val pseudo-variable
Returns:
0 on success, -1 on error

Definition at line 99 of file pv_trans.c.

References compute_md5(), escape_common(), escape_param(), escape_user(), int2str(), _str::len, _str::s, TR_BUFFER_SIZE, unescape_common(), and unescape_user().

Here is the call graph for this function:

int tr_eval_tobody ( struct sip_msg msg,
tr_param_t *  tp,
int  subtype,
pv_value_t *  val 
)
Parameters:
msg SIP message
tp transformation
subtype transformation type
val pseudo-variable
Returns:
0 on success, -1 on error

Definition at line 1248 of file pv_trans.c.

References _str::len, parse_to(), and _str::s.

Here is the call graph for this function:

int tr_eval_uri ( struct sip_msg msg,
tr_param_t *  tp,
int  subtype,
pv_value_t *  val 
)
Parameters:
msg SIP message
tp transformation
subtype transformation type
val pseudo-variable
Returns:
0 on success, -1 on error

Definition at line 765 of file pv_trans.c.

References param::body, CLASS_ANY, free_params(), sip_uri::host, _str::len, sip_uri::lr_val, sip_uri::maddr_val, sip_uri::method_val, param::name, param::next, sip_uri::params, parse_params(), sip_uri::passwd, sip_uri::port, _str::s, sip_uri::transport_val, sip_uri::ttl_val, sip_uri::user, and sip_uri::user_param_val.

Here is the call graph for this function:

char* tr_parse_line ( str in,
trans_t *  t 
)
Parameters:
in parsed string
t transformation
Returns:
pointer to the end of the transformation in the string - '}', null on error

Definition at line 2318 of file pv_trans.c.

References _str::len, and _str::s.

char* tr_parse_nameaddr ( str in,
trans_t *  t 
)
Parameters:
in parsed string
t transformation
Returns:
pointer to the end of the transformation in the string - '}', null on error

Definition at line 2204 of file pv_trans.c.

References _str::len, and _str::s.

char* tr_parse_paramlist ( str in,
trans_t *  t 
)
Parameters:
in parsed string
t transformation
Returns:
pointer to the end of the transformation in the string - '}', null on error

Definition at line 2087 of file pv_trans.c.

References _str::len, pv_spec_free(), _str::s, and tr_param_free().

Here is the call graph for this function:

char* tr_parse_string ( str in,
trans_t *  t 
)
Parameters:
in parsed string
t transformation
Returns:
pointer to the end of the transformation in the string - '}', null on error

Definition at line 1659 of file pv_trans.c.

References _str::len, pv_spec_free(), _str::s, and tr_param_free().

Here is the call graph for this function:

char* tr_parse_tobody ( str in,
trans_t *  t 
)
Parameters:
in parsed string
t transformation
Returns:
pointer to the end of the transformation in the string - '}', null on error

Definition at line 2257 of file pv_trans.c.

References _str::len, and _str::s.

char* tr_parse_uri ( str in,
trans_t *  t 
)
Parameters:
in parsed string
t transformation
Returns:
pointer to the end of the transformation in the string - '}', null on error

Definition at line 1978 of file pv_trans.c.

References _str::len, pv_spec_free(), _str::s, and tr_param_free().

Here is the call graph for this function: