k/siputils/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_siputils       default_siputils_cfg = {
00037                 0
00038         };
00039 
00040 void    *siputils_cfg = &default_siputils_cfg;
00041 
00042 cfg_def_t       siputils_cfg_def[] = {
00043         {"ring_timeout",        CFG_VAR_INT | CFG_ATOMIC,       0, 0, ring_timeout_fixup, 0,
00044                 "define how long the Call-id is kept in the internal list" },
00045         {0, 0, 0, 0, 0, 0}
00046 };
00047 
00048 int ring_timeout_fixup(void *handle, str* gname, str* name, void **val){
00049         if((int)(long)*val > 0) return 0;
00050         return -1;
00051 }