1 /*
2  * This file is part of Kamailio, a free SIP server.
3  *
4  * Kamailio is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version
8  *
9  * Kamailio is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17  *
18  */
19 
20 /*!
21  * \file
22  * \brief Siputils :: Configuration
23  * \ingroup Siputils
24  */
25 
26 
27 #include "../../core/cfg/cfg.h"
28 #include "../../core/parser/msg_parser.h" /* method types */
29 
30 #include "config.h"
31 
32 struct cfg_group_siputils	default_siputils_cfg = {
33 		0
34 	};
35 
36 void	*siputils_cfg = &default_siputils_cfg;
37 
38 cfg_def_t	siputils_cfg_def[] = {
39 	{"ring_timeout",	CFG_VAR_INT | CFG_ATOMIC,	0, 0, ring_timeout_fixup, 0,
40 		"define how long the Call-id is kept in the internal list" },
41 	{0, 0, 0, 0, 0, 0}
42 };
43 
ring_timeout_fixup(void * handle,str * gname,str * name,void ** val)44 int ring_timeout_fixup(void *handle, str* gname, str* name, void **val){
45 	if((int)(long)*val > 0) return 0;
46 	return -1;
47 }
48