Header file for domainpolicy table relates functions. More...
#include "../../parser/msg_parser.h"

Go to the source code of this file.
Definition in file domainpolicy.h.
| int domainpolicy_db_bind | ( | const str * | db_url | ) |
| db_url | database url |
Definition at line 209 of file domainpolicy.c.
References db_bind_mod().

| int domainpolicy_db_init | ( | const str * | db_url | ) |
| db_url | database url |
Definition at line 225 of file domainpolicy.c.
| db_url | database URL | |
| name | table name |
Definition at line 260 of file domainpolicy.c.
References db_table_version().

| 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
| _msg | SIP message | |
| _s1 | unused | |
| _s2 | unused |
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.

| int dp_can_connect | ( | struct sip_msg * | _msg, | |
| char * | _s1, | |||
| char * | _s2 | |||
| ) |
| _msg | SIP message | |
| _s1 | unused | |
| _s2 | unused |
Definition at line 762 of file domainpolicy.c.
References sip_uri::host, _str::len, MAX_DOMAIN_SIZE, sip_msg::parsed_uri, and _str::s.
1.7.1