ul_mod.h

Go to the documentation of this file.
00001 /*
00002  * $Id: ul_mod.h 4518 2008-07-28 15:39:28Z henningw $
00003  *
00004  * User location module interface
00005  *
00006  * Copyright (C) 2001-2003 FhG Fokus
00007  *
00008  * This file is part of Kamailio, a free SIP server.
00009  *
00010  * Kamailio is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version
00014  *
00015  * Kamailio is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License 
00021  * along with this program; if not, write to the Free Software 
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023  *
00024  * History:
00025  * ---------
00026  */
00027 
00028 /*! \file
00029  *  \brief USRLOC - Usrloc module interface
00030  *  \ingroup usrloc
00031  */
00032 
00033 #ifndef UL_MOD_H
00034 #define UL_MOD_H
00035 
00036 
00037 #include "../../db/db.h"
00038 #include "../../str.h"
00039 
00040 
00041 /*
00042  * Module parameters
00043  */
00044 
00045 
00046 #define NO_DB         0
00047 #define WRITE_THROUGH 1
00048 #define WRITE_BACK    2
00049 #define DB_ONLY       3
00050 
00051 #define UL_TABLE_VERSION 1004
00052 
00053 extern str user_col;
00054 extern str domain_col;
00055 extern str contact_col;
00056 extern str expires_col;
00057 extern str q_col;
00058 extern str callid_col;
00059 extern str cseq_col;
00060 extern str flags_col;
00061 extern str cflags_col;
00062 extern str user_agent_col;
00063 extern str received_col;
00064 extern str path_col;
00065 extern str sock_col;
00066 extern str methods_col;
00067 extern str last_mod_col;
00068 
00069 extern str db_url;
00070 extern int timer_interval;
00071 extern int db_mode;
00072 extern int use_domain;
00073 extern int desc_time_order;
00074 extern int cseq_delay;
00075 extern int ul_fetch_rows;
00076 extern int ul_hash_size;
00077 
00078 extern db_con_t* ul_dbh;   /* Database connection handle */
00079 extern db_func_t ul_dbf;
00080 
00081 
00082 /*
00083  * Matching algorithms
00084  */
00085 #define CONTACT_ONLY            (0)
00086 #define CONTACT_CALLID          (1)
00087 
00088 extern int matching_mode;
00089 
00090 
00091 #endif /* UL_MOD_H */

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