domain.c File Reference

#include "domain_mod.h"
#include "hash.h"
#include "../../db/db.h"
#include "../../parser/parse_uri.h"
#include "../../parser/parse_from.h"
#include "../../ut.h"
#include "../../dset.h"
#include "../../route.h"
#include "../../pvar.h"
#include "../../str.h"

Include dependency graph for domain.c:

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 *_host)
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 *_sp, char *_s2)

Variables

static db_con_tdb_handle = 0
static db_func_t domain_dbf


Function Documentation

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   ) 

Definition at line 76 of file domain.c.

References db_func::close.

Referenced by mod_init().

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 _host  ) 

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 
)

int reload_domain_table ( void   ) 

int w_is_domain_local ( struct sip_msg _msg,
char *  _sp,
char *  _s2 
)


Variable Documentation

db_con_t* db_handle = 0 [static]

Definition at line 43 of file domain.c.

Definition at line 44 of file domain.c.


Generated on Tue May 22 16:00:39 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6