carrierroute.h

Go to the documentation of this file.
00001 /*
00002  * $Id: carrierroute.h 5227 2008-11-19 13:16:15Z henningw $
00003  *
00004  * Copyright (C) 2007-2008 1&1 Internet AG
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 
00023 /**
00024  * \file carrierroute.h
00025  * \brief Some globals.
00026  * \ingroup carrierroute
00027  * - Module; \ref carrierroute
00028  */
00029 
00030 #ifndef CARRIERROUTE_H
00031 #define CARRIERROUTE_H
00032 
00033 #include "../../str.h"
00034 
00035 #define DICE_MAX 1000
00036 
00037 #define SUBSCRIBER_COLUMN_NUM 3
00038 #define SUBSCRIBER_USERNAME_COL 0
00039 #define SUBSCRIBER_DOMAIN_COL   1
00040 #define SUBSCRIBER_CARRIER_COL  2
00041 
00042 #define CARRIERROUTE_MODE_DB 1
00043 #define CARRIERROUTE_MODE_FILE 2
00044 
00045 extern str subscriber_table;
00046 extern str * subscriber_columns[];
00047 extern char * config_source;
00048 extern char * config_file;
00049 extern str default_tree;
00050 
00051 extern const str CR_EMPTY_PREFIX;
00052 
00053 extern int mode;
00054 extern int use_domain;
00055 extern int fallback_default;
00056 extern int cr_fetch_rows;
00057 extern int cr_match_mode;
00058 
00059 #endif

Generated on Thu May 17 12:00:25 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6