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 Dispatcher :: Configuration 23 * \ingroup Dispatcher 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 /* clang-format off */ 33 struct cfg_group_dispatcher default_dispatcher_cfg = { 34 1, /* Probing threshold */ 35 1, /* Inactive threshold */ 36 {0,0} /* reply codes */ 37 }; 38 39 void *dispatcher_cfg = &default_dispatcher_cfg; 40 41 cfg_def_t dispatcher_cfg_def[] = { 42 {"probing_threshold", CFG_VAR_INT | CFG_ATOMIC, 43 0, 0, 0, 0, 44 "Number of failed requests, before a destination is set to probing."}, 45 {"inactive_threshold", CFG_VAR_INT | CFG_ATOMIC, 46 0, 0, 0, 0, 47 "Number of successful requests, before a destination is set to active."}, 48 {"ping_reply_codes", CFG_VAR_STR | CFG_CB_ONLY_ONCE 49 , 0, 0, 0, ds_ping_reply_codes_update, 50 "Additional, valid reply codes for the OPTIONS Pinger. Default is \"\""}, 51 {0, 0, 0, 0, 0, 0} 52 }; 53 /* clang-format on */ 54