uri_db/checks.c File Reference

#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"

Include dependency graph for uri_db/checks.c:

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_tdb_handle = 0
static db_func_t uridb_dbf


Function Documentation

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 
)

static int check_username ( struct sip_msg _m,
struct sip_uri _uri 
) [inline, static]

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

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   ) 

Definition at line 273 of file uri_db/checks.c.

References db_func::close.

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().

int uridb_db_ver ( const str db_url,
str name 
)

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().


Variable Documentation

db_con_t* db_handle = 0 [static]

Definition at line 43 of file uri_db/checks.c.

db_func_t uridb_dbf [static]

Definition at line 44 of file uri_db/checks.c.


Generated on Thu May 24 22:00:37 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6