00001 /* 00002 * $Id: globals.h 5071 2008-10-14 15:03:25Z henningw $ 00003 * 00004 * Copyright (C) 2001-2003 FhG Fokus 00005 * 00006 * This file is part of Kamailio, a free SIP server. 00007 * 00008 * Kamailio 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 * Kamailio is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 */ 00022 00023 /*! 00024 * \file 00025 * \brief Global variables 00026 */ 00027 00028 00029 #ifndef globals_h 00030 #define globals_h 00031 00032 #include "ip_addr.h" 00033 #include "str.h" 00034 #include "poll_types.h" 00035 00036 #define DO_DNS 1 00037 #define DO_REV_DNS 2 00038 00039 extern char * cfg_file; 00040 extern int config_check; 00041 extern char *stat_file; 00042 extern unsigned short port_no; 00043 00044 extern char* pid_file; 00045 extern char* pgid_file; 00046 00047 extern struct socket_info* bind_address; /*!< pointer to the crt. proc. listening address */ 00048 extern struct socket_info* sendipv4; /*!< ipv4 socket to use when msg. comes from ipv6*/ 00049 extern struct socket_info* sendipv6; /*!< same as above for ipv6 */ 00050 #ifdef USE_TCP 00051 extern struct socket_info* sendipv4_tcp; /*!< ipv4 socket to use when msg. comes from ipv6*/ 00052 extern struct socket_info* sendipv6_tcp; /*!< same as above for ipv6 */ 00053 extern int unix_tcp_sock; /*!< socket used for communication with tcp main*/ 00054 #endif 00055 #ifdef USE_TLS 00056 extern struct socket_info* sendipv4_tls; /*!< ipv4 socket to use when msg. comes from ipv6*/ 00057 extern struct socket_info* sendipv6_tls; /*!< same as above for ipv6 */ 00058 #endif 00059 #ifdef USE_SCTP 00060 extern struct socket_info* sendipv4_sctp; /*!< ipv4 socket to use when msg. comes from ipv6*/ 00061 extern struct socket_info* sendipv6_sctp; /*!< same as above for ipv6 */ 00062 #endif 00063 00064 extern int auto_aliases; 00065 00066 extern unsigned int maxbuffer; 00067 extern int children_no; 00068 #ifdef USE_TCP 00069 extern int tcp_children_no; 00070 extern int tcp_disable; 00071 extern int tcp_accept_aliases; 00072 extern int tcp_connect_timeout; 00073 extern int tcp_send_timeout; 00074 extern int tcp_con_lifetime; /*!< connection lifetime */ 00075 extern enum poll_types tcp_poll_method; 00076 extern int tcp_max_fd_no; 00077 extern int tcp_max_connections; 00078 extern int tcp_crlf_pingpong; 00079 #endif 00080 #ifdef USE_TLS 00081 extern int tls_disable; 00082 extern unsigned short tls_port_no; 00083 #endif 00084 #ifdef USE_SCTP 00085 extern int sctp_disable; 00086 #endif 00087 extern int dont_fork; 00088 extern int no_daemon; 00089 extern int check_via; 00090 extern int received_dns; 00091 extern int sip_warning; 00092 extern int server_signature; 00093 extern str server_header; 00094 extern str user_agent_header; 00095 extern char* user; 00096 extern char* group; 00097 extern char* sock_user; 00098 extern char* sock_group; 00099 extern int sock_uid; 00100 extern int sock_gid; 00101 extern int sock_mode; 00102 extern char* chroot_dir; 00103 extern char* working_dir; 00104 00105 #ifdef USE_MCAST 00106 extern int mcast_loopback; 00107 extern int mcast_ttl; 00108 #endif /* USE_MCAST */ 00109 00110 extern int tos; 00111 00112 extern int disable_dns_failover; 00113 extern int disable_dns_blacklist; 00114 00115 extern int cfg_errors; 00116 00117 extern unsigned long shm_mem_size; 00118 00119 extern int reply_to_via; 00120 00121 extern int is_main; 00122 00123 extern int memlog; /*!< debugging level for dumping memory status */ 00124 00125 extern int mhomed; /*!< looking up outbound interface ? */ 00126 00127 extern int my_argc; /*!< command-line arguments */ 00128 extern char **my_argv; 00129 00130 extern str default_global_address; /*!< pre-set addresses */ 00131 extern str default_global_port; /*!< pre-ser ports */ 00132 00133 extern int disable_core_dump; /*!< core dump limits */ 00134 extern int open_files_limit; /*!< file limits */ 00135 00136 extern int dns_retr_time; /*!< DNS resolver: Retry time */ 00137 extern int dns_retr_no; /*!< DNS resolver : Retry # */ 00138 extern int dns_servers_no; /*!< DNS resolver: Server no */ 00139 extern int dns_search_list; /*!< DNS resolver: Search list */ 00140 00141 extern int max_while_loops; 00142 00143 #endif
1.5.6