00001 /* 00002 * $Id: cfg_core.h,v 1.8 2008/12/18 16:06:04 andrei Exp $ 00003 * 00004 * Copyright (C) 2007 iptelorg GmbH 00005 * 00006 * This file is part of ser, a free SIP server. 00007 * 00008 * ser is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version 00012 * 00013 * For a license to use the ser software under conditions 00014 * other than those described here, or to purchase support for this 00015 * software, please contact iptel.org by e-mail at the following addresses: 00016 * info@iptel.org 00017 * 00018 * ser is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 * GNU General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU General Public License 00024 * along with this program; if not, write to the Free Software 00025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00026 * 00027 * HOWTO: 00028 * If you need a new configuration variable within the core, put it into 00029 * struct cfg_goup_core, and define it in cfg_core.c:core_cfg_def array. 00030 * The default value of the variable must be inserted into 00031 * cfg_core.c:default_core_cfg 00032 * Include this header file in your source code, and retrieve the 00033 * value with cfg_get(core, core_cfg, variable_name). 00034 * 00035 * History 00036 * ------- 00037 * 2007-12-03 Initial version (Miklos) 00038 */ 00039 00040 #ifndef _CFG_CORE_H 00041 #define _CFG_CORE_H 00042 00043 #include "cfg/cfg.h" 00044 00045 extern void *core_cfg; 00046 00047 struct cfg_group_core { 00048 int debug; 00049 int log_facility; 00050 #ifdef USE_DST_BLACKLIST 00051 /* blacklist */ 00052 int use_dst_blacklist; /* 1 if blacklist is enabled */ 00053 unsigned int blst_timeout; /* blacklist entry ttl */ 00054 unsigned int blst_max_mem; /* maximum memory used for the 00055 blacklist entries */ 00056 #endif 00057 /* resolver */ 00058 int dns_try_ipv6; 00059 int dns_try_naptr; 00060 int dns_udp_pref; 00061 int dns_tcp_pref; 00062 int dns_tls_pref; 00063 int dns_sctp_pref; 00064 int dns_retr_time; 00065 int dns_retr_no; 00066 int dns_servers_no; 00067 int dns_search_list; 00068 int dns_search_fmatch; 00069 int dns_reinit; 00070 /* DNS cache */ 00071 #ifdef USE_DNS_CACHE 00072 int use_dns_cache; 00073 int dns_cache_flags; 00074 int use_dns_failover; 00075 int dns_srv_lb; 00076 unsigned int dns_neg_cache_ttl; 00077 unsigned int dns_cache_min_ttl; 00078 unsigned int dns_cache_max_ttl; 00079 unsigned int dns_cache_max_mem; 00080 int dns_cache_del_nonexp; 00081 #endif 00082 #ifdef PKG_MALLOC 00083 int mem_dump_pkg; 00084 #endif 00085 #ifdef SHM_MEM 00086 int mem_dump_shm; 00087 #endif 00088 int udp_mtu; 00089 int udp_mtu_try_proto; 00090 int force_rport; 00091 }; 00092 00093 extern struct cfg_group_core default_core_cfg; 00094 extern cfg_def_t core_cfg_def[]; 00095 00096 #endif /* _CFG_CORE_H */
1.3.9.1