src/modules/dispatcher/config.c
ec903da3
 /*
fb6f8e11
  * This file is part of Kamailio, a free SIP server.
ec903da3
  *
148414ad
  * Kamailio is free software; you can redistribute it and/or modify
ec903da3
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  *
148414ad
  * Kamailio is distributed in the hope that it will be useful,
ec903da3
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
9e1ff448
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
ec903da3
  *
  */
 
 /*!
d081ee4e
  * \file
ec903da3
  * \brief Dispatcher :: Configuration
  * \ingroup Dispatcher
  */
 
 
cf83221d
 #include "../../core/cfg/cfg.h"
 #include "../../core/parser/msg_parser.h" /* method types */
ec903da3
 
 #include "config.h"
 
d081ee4e
 /* clang-format off */
ec903da3
 struct cfg_group_dispatcher	default_dispatcher_cfg = {
d081ee4e
 	1,	/* Probing threshold */
 	1,      /* Inactive threshold */
 	{0,0}	/* reply codes */
 };
ec903da3
 
 void	*dispatcher_cfg = &default_dispatcher_cfg;
 
 cfg_def_t	dispatcher_cfg_def[] = {
fb6f8e11
 	{"probing_threshold",		CFG_VAR_INT | CFG_ATOMIC,
 		0, 0, 0, 0,
ec903da3
 		"Number of failed requests, before a destination is set to probing."},
fb6f8e11
 	{"inactive_threshold",           CFG_VAR_INT | CFG_ATOMIC,
 		0, 0, 0, 0,
         "Number of successful requests, before a destination is set to active."},
 	{"ping_reply_codes",		CFG_VAR_STR | CFG_CB_ONLY_ONCE
 		,			0, 0, 0, ds_ping_reply_codes_update,
ec903da3
 		"Additional, valid reply codes for the OPTIONS Pinger. Default is \"\""},
 	{0, 0, 0, 0, 0, 0}
 };
d081ee4e
 /* clang-format on */