k/dispatcher/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  */
00020 
00028 #include "../../cfg/cfg.h"
00029 #include "../../parser/msg_parser.h" /* method types */
00030 
00031 #include "config.h"
00032 
00033 struct cfg_group_dispatcher     default_dispatcher_cfg = {
00034                 3,      /* Probing threshhold */        
00035                 {0,0}   /* reply codes */
00036             };
00037 
00038 void    *dispatcher_cfg = &default_dispatcher_cfg;
00039 
00040 cfg_def_t       dispatcher_cfg_def[] = {
00041         {"probing_threshhold",          CFG_VAR_INT | CFG_ATOMIC,       0, 0, 0, 0,
00042                 "Number of failed requests, before a destination is set to probing."},
00043         {"ping_reply_codes",            CFG_VAR_STR | CFG_CB_ONLY_ONCE ,                        0, 0, 0, ds_ping_reply_codes_update,
00044                 "Additional, valid reply codes for the OPTIONS Pinger. Default is \"\""},
00045         {0, 0, 0, 0, 0, 0}
00046 };