Defines | Functions

domainpolicy.h File Reference

Header file for domainpolicy table relates functions. More...

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

Go to the source code of this file.

Defines

Functions


Detailed Description

Definition in file domainpolicy.h.


Function Documentation

int domainpolicy_db_bind ( const str db_url  ) 
Parameters:
db_url database url
Returns:
-1 on failure, 0 on success

Definition at line 209 of file domainpolicy.c.

References db_bind_mod().

Here is the call graph for this function:

int domainpolicy_db_init ( const str db_url  ) 
Parameters:
db_url database url
Returns:
-1 on failure, 0 on success

Definition at line 225 of file domainpolicy.c.

int domainpolicy_db_ver ( const str db_url,
const str name 
)
Parameters:
db_url database URL
name table name
Returns:
-1 on failure, positive database version on success

Definition at line 260 of file domainpolicy.c.

References db_table_version().

Here is the call graph for this function:

int dp_apply_policy ( struct sip_msg _msg,
char *  _s1,
char *  _s2 
)

Apply DP-DDDS policy to current SIP message. This means build a new destination URI from the policy AVP and export it as AVP. Then in kamailio.cfg this new target AVP can be pushed into the destination URI $duri

Parameters:
_msg SIP message
_s1 unused
_s2 unused
Returns:
negative on failure, positive on succes

Definition at line 811 of file domainpolicy.c.

References sip_uri::host, _str::len, MAX_URI_SIZE, parse_phostport(), sip_msg::parsed_uri, sip_uri::port, _str::s, set_dst_uri(), and set_force_socket.

Here is the call graph for this function:

int dp_can_connect ( struct sip_msg _msg,
char *  _s1,
char *  _s2 
)
Parameters:
_msg SIP message
_s1 unused
_s2 unused
Returns:
negative on failure, positive on success

Definition at line 762 of file domainpolicy.c.

References sip_uri::host, _str::len, MAX_DOMAIN_SIZE, sip_msg::parsed_uri, and _str::s.