Functions | Variables

rpid.c File Reference

Remote-Party-ID related functions

More...

#include <string.h>
#include <strings.h>
#include "../../str.h"
#include "../../data_lump.h"
#include "../../dprint.h"
#include "../../mem/mem.h"
#include "../../parser/parse_nameaddr.h"
#include "../../parser/parse_uri.h"
#include "../../parser/parser_f.h"
#include "../../ut.h"
#include "../../pvar.h"
#include "rpid.h"
Include dependency graph for rpid.c:

Go to the source code of this file.

Functions

Variables


Detailed Description

Definition in file rpid.c.


Function Documentation

static int append_rpid_helper ( struct sip_msg _m,
str _s 
) [inline, static]
Parameters:
_m SIP message
_s appended string
Note:
Copy of append_hf_helper from textops
Returns:
0 on success, negative on failure

Definition at line 134 of file rpid.c.

References anchor_lump(), sip_msg::buf, HDR_EOH_F, _str::len, _str::s, and sip_msg::unparsed.

Referenced by append_rpid_hf(), and append_rpid_hf_p().

Here is the call graph for this function:

Here is the caller graph for this function:

int append_rpid_hf ( struct sip_msg _m,
char *  _s1,
char *  _s2 
)
Parameters:
_m SIP message
_s1 unused
_s2 unused
Returns:
1 on success, -1 on failure

Definition at line 165 of file rpid.c.

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

Here is the call graph for this function:

int append_rpid_hf_p ( struct sip_msg _m,
char *  _prefix,
char *  _suffix 
)
Parameters:
_m SIP message
_prefix prefix
_suffix suffix
Returns:
1 on success, -1 on failure

Definition at line 228 of file rpid.c.

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

Here is the call graph for this function:

void get_rpid_avp ( int_str *  rpid_avp_p,
int *  rpid_avp_type_p 
)
Parameters:
rpid_avp_p AVP name
rpid_avp_type_p AVP type

Definition at line 97 of file rpid.c.

Referenced by bind_siputils().

Here is the caller graph for this function:

int init_rpid_avp ( char *  rpid_avp_param  ) 
Parameters:
rpid_avp_param RPID AVP parameter
Returns:
0 on success, -1 on failure

Definition at line 65 of file rpid.c.

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

Here is the call graph for this function:

static int is_e164 ( str _user  )  [inline, static]
Parameters:
_user user
Note:
Copy of is_e164 from enum module
Returns:
1 if its a E164 number, -1 if not

Definition at line 110 of file rpid.c.

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

Referenced by is_rpid_user_e164().

Here is the caller graph for this function:

int is_rpid_user_e164 ( struct sip_msg _m,
char *  _s1,
char *  _s2 
)
Parameters:
_m SIP message
_s1 unused
_s2 unused
Returns:
1 if the URI contains an E164 user part, -1 if not

Definition at line 294 of file rpid.c.

References is_e164(), _str::len, parse_nameaddr(), _str::s, name_addr::uri, and sip_uri::user.

Here is the call graph for this function: