globals.h File Reference

Global variables. More...

#include "ip_addr.h"
#include "str.h"
#include "poll_types.h"

Include dependency graph for globals.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DO_DNS   1
#define DO_REV_DNS   2

Variables

int auto_aliases
struct socket_infobind_address
int cfg_errors
char * cfg_file
int check_via
int children_no
char * chroot_dir
int config_check
str default_global_address
str default_global_port
int disable_core_dump
int disable_dns_blacklist
int disable_dns_failover
int dns_retr_no
int dns_retr_time
int dns_search_list
int dns_servers_no
int dont_fork
char * group
int is_main
int max_while_loops
unsigned int maxbuffer
int memlog
int mhomed
int my_argc
char ** my_argv
int no_daemon
int open_files_limit
char * pgid_file
char * pid_file
unsigned short port_no
int received_dns
int reply_to_via
struct socket_infosendipv4
struct socket_infosendipv6
str server_header
int server_signature
unsigned long shm_mem_size
int sip_warning
int sock_gid
char * sock_group
int sock_mode
int sock_uid
char * sock_user
char * stat_file
int tos
char * user
str user_agent_header
char * working_dir


Detailed Description

Global variables.

Definition in file globals.h.


Define Documentation

#define DO_DNS   1

Definition at line 36 of file globals.h.

Referenced by check_via_address(), and main().

#define DO_REV_DNS   2

Definition at line 37 of file globals.h.

Referenced by check_via_address(), comp_ip(), and main().


Variable Documentation

if aliases should be automatically discovered and added during fixing listening sockets

Definition at line 288 of file main.c.

Referenced by fix_socket_list().

pointer to the crt. proc. listening address

pointer to the crt. proc. listening address

Definition at line 268 of file main.c.

Referenced by child_init_callid(), faked_env(), get_send_socket(), uac_init(), and udp_rcv_loop().

cfg parsing

Definition at line 301 of file main.c.

char* cfg_file

Definition at line 177 of file main.c.

Referenced by get_pathname(), and main().

int check_via

check if reply first via host==us

Definition at line 211 of file main.c.

Referenced by forward_reply(), and main().

number of children processing requests

Definition at line 182 of file main.c.

Referenced by init_multi_proc_support(), main(), and main_loop().

char* chroot_dir

Definition at line 236 of file main.c.

Referenced by daemonize().

Definition at line 209 of file main.c.

Referenced by main().

pre-set addresses

Definition at line 73 of file receive.c.

Referenced by faked_msg_init().

pre-ser ports

Definition at line 74 of file receive.c.

Referenced by faked_msg_init().

core dump limits

disable coredumps, by default enabled

Definition at line 243 of file main.c.

Referenced by daemonize(), and do_suid().

Definition at line 72 of file resolve.c.

Referenced by resolv_blacklist_init().

disable the DNS failover

Definition at line 63 of file proxy.c.

Referenced by mk_proxy(), and mk_shm_proxy().

DNS resolver : Retry #

Definition at line 69 of file resolve.c.

Referenced by resolv_init().

DNS resolver: Retry time

Definition at line 68 of file resolve.c.

Referenced by resolv_init().

DNS resolver: Search list

Definition at line 71 of file resolve.c.

Referenced by resolv_init().

DNS resolver: Server no

Definition at line 70 of file resolve.c.

Referenced by resolv_init().

int dont_fork

Definition at line 201 of file main.c.

Referenced by init_multi_proc_support(), main(), main_loop(), and sig_usr().

char* group

int is_main

flag = is this the "main" process?

Definition at line 314 of file main.c.

Referenced by internal_fork().

Definition at line 87 of file action.c.

Referenced by do_action().

unsigned int maxbuffer

maximum buffer size we do not want to exceed during the auto-probing procedure; may be re-configured

Definition at line 178 of file main.c.

Referenced by main(), and probe_max_receive_buffer().

int memlog

debugging level for dumping memory status

debugging level for memory stats

Definition at line 213 of file main.c.

Referenced by cleanup(), handle_sigs(), qm_free(), qm_malloc(), qm_realloc(), qm_status(), and sig_usr().

int mhomed

looking up outbound interface ?

should Kamailio try to locate outbound interface on multihomed host? by default not -- too expensive

Definition at line 231 of file main.c.

Referenced by get_send_socket(), and sl_send_reply_helper().

int my_argc

command-line arguments

export command-line to anywhere else

Definition at line 307 of file main.c.

Referenced by mi_arg().

char** my_argv

Definition at line 308 of file main.c.

Referenced by mi_arg().

int no_daemon

Definition at line 202 of file main.c.

Referenced by main().

file limits

don't touch it by default

Definition at line 244 of file main.c.

char* pgid_file

Definition at line 317 of file main.c.

Referenced by daemonize().

char* pid_file

filename as asked by user

Definition at line 316 of file main.c.

Referenced by daemonize().

unsigned short port_no

default port

Definition at line 290 of file main.c.

Referenced by add_listen_iface(), fix_socket_list(), get_sock_hdr(), mi_mod_init(), and parse_uri().

use dns and/or rdns or to see if we need to add a ;received=x.x.x.x to via:

Definition at line 234 of file main.c.

Referenced by comp_ip(), and received_test().

a hint to reply modules whether they should send reply to IP advertised in Via or IP from which a request came

Definition at line 248 of file main.c.

Referenced by init_rb(), sl_send_reply_helper(), t_relay_to(), and w_as_relay_t().

ipv4 socket to use when msg. comes from ipv6

ipv4 socket to use when msg. comes from ipv6

Definition at line 270 of file main.c.

Referenced by get_send_socket().

same as above for ipv6

Definition at line 271 of file main.c.

Referenced by get_send_socket().

Server header to be used when proxy generates request as UAS. Default is to use SERVER_HDR CRLF (assigned later).

Definition at line 223 of file main.c.

Referenced by build_res_buf_from_sip_req().

should localy-generated messages include server's signature?

Definition at line 219 of file main.c.

Referenced by ac_uac_req(), build_dlg_ack(), build_local(), build_res_buf_from_sip_req(), build_uac_cancel(), and build_uac_req().

unsigned long shm_mem_size

shared memory (in MB)

Definition at line 304 of file main.c.

Referenced by init_shm_mallocs(), shm_getmem(), shm_mem_destroy(), and shm_mem_init().

should replies include extensive warnings? by default yes, good for trouble-shooting

Definition at line 217 of file main.c.

Referenced by build_res_buf_from_sip_req().

int sock_gid

char* sock_group

int sock_mode

int sock_uid

char* sock_user

char* stat_file

int tos

Definition at line 255 of file main.c.

Referenced by udp_init().

char* user

User-Agent header to be used when proxy generates request as UAC. Default is to use USER_AGENT CRLF (assigned later).

Definition at line 227 of file main.c.

Referenced by build_dlg_ack(), build_local(), and build_uac_req().

char* working_dir

Definition at line 235 of file main.c.

Referenced by daemonize().


Generated on Wed May 23 06:01:03 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6