Defines | Functions | Variables

pvapi.c File Reference

SIP-router core :: PV API specificationModule: SIP-router core. More...

#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include "mem/mem.h"
#include "mem/shm_mem.h"
#include "ut.h"
#include "dprint.h"
#include "hashes.h"
#include "route.h"
#include "pvapi.h"
#include "pvar.h"
Include dependency graph for pvapi.c:

Go to the source code of this file.

Defines

Functions

Variables


Detailed Description

Definition in file pvapi.c.


Function Documentation

static int is_pv_valid_char ( char  c  )  [static]
Parameters:
c checked char
Returns:
1 if char is valid, 0 if not valid

Definition at line 96 of file pvapi.c.

void pv_destroy_api ( void   ) 

Definition at line 1789 of file pvapi.c.

int pv_get_avp_name ( struct sip_msg msg,
pv_param_p  ip,
int_str *  avp_name,
unsigned short *  name_type 
)
Returns:
0 on success, -1 on error

Definition at line 1081 of file pvapi.c.

Referenced by avp_name_fixup(), init_rpid_avp(), mod_init(), and mp_fixup().

Here is the caller graph for this function:

int pv_init_api ( void   ) 
Returns:
0 on success, -1 on error

Definition at line 1776 of file pvapi.c.

int pv_parse_avp_name ( pv_spec_p  sp,
str in 
)
Returns:
0 on success, -1 on error

Definition at line 1036 of file pvapi.c.

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

Here is the call graph for this function:

void tr_destroy ( trans_t *  t  ) 
Parameters:
t transformation

Definition at line 1516 of file pvapi.c.

References tr_param_free().

Referenced by tr_free().

Here is the call graph for this function:

Here is the caller graph for this function:

int tr_exec ( struct sip_msg msg,
trans_t *  t,
pv_value_t *  v 
)
Parameters:
msg SIP message
t one or more transformations
v pseudo-variable value
Returns:
0 on success, -1 on error

Definition at line 1539 of file pvapi.c.

void tr_free ( trans_t *  t  ) 
Parameters:
t transformation list

Definition at line 1563 of file pvapi.c.

References tr_destroy().

Referenced by pv_spec_destroy().

Here is the call graph for this function:

Here is the caller graph for this function:

void tr_param_free ( tr_param_t *  tp  ) 
Parameters:
tp transformation list

Definition at line 1581 of file pvapi.c.

References pv_spec_free().

Referenced by tr_destroy(), tr_parse_paramlist(), tr_parse_string(), and tr_parse_uri().

Here is the call graph for this function:

Here is the caller graph for this function: