00001 /* 00002 * $Id: dp_db.h 5054 2008-10-09 13:06:23Z juhe $ 00003 * 00004 * Copyright (C) 2007-2008 Voice Sistem SRL 00005 * 00006 * This file is part of Kamailio, a free SIP server. 00007 * 00008 * Kamailio is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version 00012 * 00013 * Kamailio is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 * 00022 * History: 00023 * -------- 00024 * 2007-08-01 initial version (ancuta onofrei) 00025 */ 00026 00027 #ifndef _DP_DB_H_ 00028 #define _DP_DB_H 00029 00030 #include "../../str.h" 00031 #include "../../db/db.h" 00032 00033 #define DP_TABLE_NAME "dialplan" 00034 #define DPID_COL "dpid" 00035 #define PR_COL "pr" 00036 #define MATCH_OP_COL "match_op" 00037 #define MATCH_EXP_COL "match_exp" 00038 #define MATCH_LEN_COL "match_len" 00039 #define SUBST_EXP_COL "subst_exp" 00040 #define REPL_EXP_COL "repl_exp" 00041 #define ATTRS_COL "attrs" 00042 00043 00044 #define DP_TABLE_VERSION 1 00045 #define DP_TABLE_COL_NO 8 00046 00047 extern str dp_db_url; 00048 extern str dp_table_name; 00049 extern str dpid_column; 00050 extern str pr_column; 00051 extern str match_op_column; 00052 extern str match_exp_column; 00053 extern str match_len_column; 00054 extern str subst_exp_column; 00055 extern str repl_exp_column; 00056 extern str attrs_column; 00057 00058 int init_db_data(); 00059 int dp_connect_db(); 00060 void dp_disconnect_db(); 00061 00062 #endif
1.5.6