carrierroute/config.c

Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  * This file is part of SIP-router, a free SIP server.
00004  *
00005  * SIP-router is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version
00009  *
00010  * SIP-router is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  *
00019  * History
00020  * -------
00021  *  2008-02-05  adapting tm module for the configuration framework (Miklos)
00022  */
00023 
00031 #include "../../cfg/cfg.h"
00032 #include "../../parser/msg_parser.h" /* method types */
00033 
00034 #include "config.h"
00035 
00036 struct cfg_group_carrierroute   default_carrierroute_cfg = {
00037                 0,      /* use_domain */
00038                 1,      /* fallback_default */
00039                 2000    /* fetch_rows*/ 
00040         };
00041 
00042 void    *carrierroute_cfg = &default_carrierroute_cfg;
00043 
00044 cfg_def_t       carrierroute_cfg_def[] = {
00045         {"use_domain",          CFG_VAR_INT ,   0, 1, 0, 0,
00046                 "When using tree lookup per user, this parameter specifies whether to use the domain part for user matching or not." },
00047         {"fallback_default",    CFG_VAR_INT ,   0, 1, 0, 0,
00048                 "If the user has a non-existing tree set and fallback_default is set to 1, the default tree is used. Else error is returned" },
00049         {"fetch_rows",  CFG_VAR_INT ,   0, 0, 0, 0,
00050                 "The number of the rows to be fetched at once from database when loading the routing data."},
00051         {0, 0, 0, 0, 0, 0}
00052 };
00053