#include <string.h>#include "../../str.h"#include "../../dprint.h"#include "../../parser/digest/digest.h"#include "../../parser/parse_from.h"#include "../../parser/parse_uri.h"#include "../../ut.h"#include "../../db/db.h"#include "uridb_mod.h"#include "checks.h"

Go to the source code of this file.
Functions | |
| int | check_from (struct sip_msg *_m, char *_s1, char *_s2) |
| int | check_to (struct sip_msg *_m, char *_s1, char *_s2) |
| static int | check_username (struct sip_msg *_m, struct sip_uri *_uri) |
| int | does_uri_exist (struct sip_msg *_msg, char *_s1, char *_s2) |
| int | uridb_db_bind (const str *db_url) |
| void | uridb_db_close (void) |
| int | uridb_db_init (const str *db_url) |
| int | uridb_db_ver (const str *db_url, str *name) |
Variables | |
| static db_con_t * | db_handle = 0 |
| static db_func_t | uridb_dbf |
| int check_from | ( | struct sip_msg * | _m, | |
| char * | _s1, | |||
| char * | _s2 | |||
| ) |
Definition at line 168 of file uri_db/checks.c.
References check_username(), get_from, LM_ERR, NULL, parse_from_header(), and parse_from_uri().
| int check_to | ( | struct sip_msg * | _m, | |
| char * | _s1, | |||
| char * | _s2 | |||
| ) |
Definition at line 150 of file uri_db/checks.c.
References check_username(), get_to, HDR_TO_F, LM_ERR, NULL, parse_headers(), parse_to_uri(), and sip_msg::to.
Definition at line 51 of file uri_db/checks.c.
References sip_msg::authorization, DB_STR, db_table, auth_body::digest, db_func::free_result, get_authorized_cred(), GET_REALM, _str::len, LM_DBG, LM_ERR, NULL, hdr_field::parsed, sip_msg::proxy_auth, db_func::query, RES_ROW_N, _str::s, uridb_domain_col, uridb_uriuser_col, uridb_user_col, db_func::use_table, use_uri_table, username::user, sip_uri::user, dig_cred::username, VAL_NULL, VAL_STR, VAL_TYPE, vals, and ZSW.
Referenced by check_from(), and check_to().
| int does_uri_exist | ( | struct sip_msg * | _msg, | |
| char * | _s1, | |||
| char * | _s2 | |||
| ) |
Definition at line 186 of file uri_db/checks.c.
References DB_STR, db_table, db_func::free_result, sip_uri::host, LM_DBG, LM_ERR, NULL, parse_sip_msg_uri(), sip_msg::parsed_uri, db_func::query, RES_ROW_N, uridb_domain_col, uridb_uriuser_col, uridb_user_col, use_domain, db_func::use_table, use_uri_table, sip_uri::user, VAL_NULL, VAL_STR, VAL_TYPE, and vals.
| int uridb_db_bind | ( | const str * | db_url | ) |
Definition at line 257 of file uri_db/checks.c.
References db_bind_mod(), DB_CAP_QUERY, DB_CAPABILITY, and LM_ERR.
Referenced by mod_init().
| void uridb_db_close | ( | void | ) |
| int uridb_db_init | ( | const str * | db_url | ) |
Definition at line 240 of file uri_db/checks.c.
References db_func::init, LM_CRIT, and LM_ERR.
Referenced by child_init().
Definition at line 282 of file uri_db/checks.c.
References db_func::close, db_table_version(), db_func::init, LM_CRIT, and LM_ERR.
Referenced by mod_init().
Definition at line 43 of file uri_db/checks.c.
Definition at line 44 of file uri_db/checks.c.
1.5.6