2 * $Id: globals.h,v 1.52 2004/11/10 21:51:24 andrei Exp $
7 * Copyright (C) 2001-2003 FhG Fokus
9 * This file is part of ser, a free SIP server.
11 * ser is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version
16 * For a license to use the ser software under conditions
17 * other than those described here, or to purchase support for this
18 * software, please contact iptel.org by e-mail at the following addresses:
21 * ser is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
46 extern char * cfg_file;
47 extern int config_check;
48 extern char *stat_file;
49 extern unsigned short port_no;
55 extern int own_pgid; /* whether or not we have our own pgid (and it's ok
56 >--->--->--->--->--->--->--->--->--->--->--- to use kill(0, sig) */
58 extern struct socket_info* bind_address; /* pointer to the crt. proc.
60 extern struct socket_info* sendipv4; /* ipv4 socket to use when msg.
62 extern struct socket_info* sendipv6; /* same as above for ipv6 */
64 extern struct socket_info* sendipv4_tcp; /* ipv4 socket to use when msg.
66 extern struct socket_info* sendipv6_tcp; /* same as above for ipv6 */
67 extern int unix_tcp_sock; /* socket used for communication with tcp main*/
70 extern struct socket_info* sendipv4_tls; /* ipv4 socket to use when msg.
72 extern struct socket_info* sendipv6_tls; /* same as above for ipv6 */
75 extern unsigned int maxbuffer;
76 extern int children_no;
78 extern int tcp_children_no;
79 extern int tcp_disable;
80 extern int tcp_accept_aliases;
81 extern int tcp_connect_timeout;
82 extern int tcp_send_timeout;
85 extern int tls_disable;
86 extern unsigned short tls_port_no;
90 extern int received_dns;
91 extern int syn_branch;
92 /* extern int process_no; */
93 extern int sip_warning;
94 extern int server_signature;
97 extern char* sock_user;
98 extern char* sock_group;
101 extern int sock_mode;
102 extern char* chroot_dir;
103 extern char* working_dir;
106 extern int mcast_loopback;
107 extern int mcast_ttl;
108 #endif /* USE_MCAST */
111 * debug & log_stderr moved to dprint.h*/
113 /* extern process_bm_t process_bit; */
114 /* extern int *pids; -moved to pt.h */
116 extern int cfg_errors;
117 extern unsigned int msg_no;
119 extern unsigned long shm_mem_size;
121 /* FIFO server config */
122 char extern *fifo; /* FIFO name */
123 extern int fifo_mode;
124 char extern *fifo_dir; /* dir. where reply fifos are allowed */
125 extern char *fifo_db_url; /* db url used by db_fifo interface */
127 /* UNIX domain socket configuration */
128 extern char *unixsock_name; /* The name of the socket */
129 extern int unixsock_children; /* The number of listening children */
130 extern int unixsock_tx_timeout; /* Timeout (in ms) used when sending data */
132 /* AVP configuration */
133 extern char *avp_db_url; /* db url used by user preferences (AVPs) */
137 extern int process_no;
140 extern int reply_to_via;
144 /* debugging level for dumping memory status */
147 /* looking up outbound interface ? */
150 /* command-line arguments */
152 extern char **my_argv;
154 /* pre-set addresses */
155 extern str default_global_address;
157 extern str default_global_port;
159 /* core dump and file limits */
160 extern int disable_core_dump;
161 extern int open_files_limit;