#include "../../parser/msg_parser.h"


Go to the source code of this file.
Functions | |
| int | domain_db_bind (const str *db_url) |
| void | domain_db_close (void) |
| int | domain_db_init (const str *db_url) |
| int | domain_db_ver (str *name, int version) |
| int | is_domain_local (str *domain) |
| int | is_from_local (struct sip_msg *_msg, char *_s1, char *_s2) |
| int | is_uri_host_local (struct sip_msg *_msg, char *_s1, char *_s2) |
| int | reload_domain_table (void) |
| int | w_is_domain_local (struct sip_msg *_msg, char *_s1, char *_s2) |
| int domain_db_bind | ( | const str * | db_url | ) |
Definition at line 48 of file domain.c.
References db_bind_mod(), and LM_ERR.
Referenced by mod_init().
| void domain_db_close | ( | void | ) |
| int domain_db_init | ( | const str * | db_url | ) |
Definition at line 59 of file domain.c.
References db_func::init, and LM_ERR.
Referenced by child_init(), mi_child_init(), and mod_init().
| int domain_db_ver | ( | str * | name, | |
| int | version | |||
| ) |
Definition at line 86 of file domain.c.
References db_check_table_version(), and LM_ERR.
Referenced by mod_init().
| int is_domain_local | ( | str * | domain | ) |
Definition at line 100 of file domain.c.
References db_mode, DB_STR, domain_col, domain_table, db_func::free_result, hash_table_lookup(), _str::len, LM_DBG, LM_ERR, NULL, db_func::query, RES_ROW_N, _str::s, db_func::use_table, VAL_NULL, VAL_STR, VAL_TYPE, vals, and ZSW.
Referenced by bind_domain(), is_from_local(), is_uri_host_local(), and w_is_domain_local().
| int is_from_local | ( | struct sip_msg * | _msg, | |
| char * | _s1, | |||
| char * | _s2 | |||
| ) |
Definition at line 148 of file domain.c.
References sip_uri::host, is_domain_local(), LM_ERR, NULL, and parse_from_uri().
| int is_uri_host_local | ( | struct sip_msg * | _msg, | |
| char * | _s1, | |||
| char * | _s2 | |||
| ) |
Definition at line 164 of file domain.c.
References BRANCH_ROUTE, FAILURE_ROUTE, get_branch(), sip_uri::host, is_domain_local(), _str::len, LM_ERR, LOCAL_ROUTE, parse_sip_msg_uri(), parse_uri(), sip_msg::parsed_uri, REQUEST_ROUTE, route_type, and _str::s.
| int reload_domain_table | ( | void | ) |
Definition at line 227 of file domain.c.
References DB_STR, DB_STRING, domain_col, domain_table, db_func::free_result, hash_table, hash_table_1, hash_table_2, hash_table_free(), hash_table_install(), LM_DBG, LM_ERR, new_hash_table(), NULL, db_func::query, RES_ROW_N, RES_ROWS, ROW_N, ROW_VALUES, db_func::use_table, VAL_NULL, VAL_STRING, VAL_TYPE, and vals.
Referenced by mi_domain_reload(), and mod_init().
| int w_is_domain_local | ( | struct sip_msg * | _msg, | |
| char * | _s1, | |||
| char * | _s2 | |||
| ) |
Definition at line 198 of file domain.c.
References _pv_value::flags, is_domain_local(), _str::len, LM_DBG, NULL, pv_get_spec_value(), PV_VAL_STR, _pv_value::rs, and _str::s.
1.5.6