carrierroute.h

Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Copyright (C) 2007-2008 1&1 Internet AG
00005  *
00006  * This file is part of SIP-router, a free SIP server.
00007  *
00008  * SIP-router 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  * SIP-router 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 
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 cr_match_mode;
00055 
00056 #endif