Wed Oct 28 11:46:14 2009

Asterisk developer's documentation


options.h File Reference

Options provided by main asterisk program. More...

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

Go to the source code of this file.

Defines

#define AST_CACHE_DIR_LEN   512
#define AST_CHANNEL_NAME   80
#define ast_compat_app_set   ast_test_flag(&ast_compat, AST_COMPAT_APP_SET)
#define ast_compat_pbx_realtime   ast_test_flag(&ast_compat, AST_COMPAT_DELIM_PBX_REALTIME)
#define ast_compat_res_agi   ast_test_flag(&ast_compat, AST_COMPAT_DELIM_RES_AGI)
#define AST_DEFAULT_OPTIONS   AST_OPT_FLAG_TRANSCODE_VIA_SLIN
#define AST_FILENAME_MAX   80
#define ast_fully_booted   ast_test_flag(&ast_options, AST_OPT_FLAG_FULLY_BOOTED)
#define ast_opt_always_fork   ast_test_flag(&ast_options, AST_OPT_FLAG_ALWAYS_FORK)
#define ast_opt_cache_record_files   ast_test_flag(&ast_options, AST_OPT_FLAG_CACHE_RECORD_FILES)
#define ast_opt_console   ast_test_flag(&ast_options, AST_OPT_FLAG_CONSOLE)
#define ast_opt_dbg_file   ast_test_flag(&ast_options, AST_OPT_FLAG_DEBUG_FILE)
#define ast_opt_dont_warn   ast_test_flag(&ast_options, AST_OPT_FLAG_DONT_WARN)
#define ast_opt_dump_core   ast_test_flag(&ast_options, AST_OPT_FLAG_DUMP_CORE)
#define ast_opt_end_cdr_before_h_exten   ast_test_flag(&ast_options, AST_OPT_FLAG_END_CDR_BEFORE_H_EXTEN)
#define ast_opt_exec   ast_test_flag(&ast_options, AST_OPT_FLAG_EXEC)
#define ast_opt_exec_includes   ast_test_flag(&ast_options, AST_OPT_FLAG_EXEC_INCLUDES)
#define ast_opt_high_priority   ast_test_flag(&ast_options, AST_OPT_FLAG_HIGH_PRIORITY)
#define ast_opt_init_keys   ast_test_flag(&ast_options, AST_OPT_FLAG_INIT_KEYS)
#define ast_opt_internal_timing   ast_test_flag(&ast_options, AST_OPT_FLAG_INTERNAL_TIMING)
#define ast_opt_mute   ast_test_flag(&ast_options, AST_OPT_FLAG_MUTE)
#define ast_opt_no_color   ast_test_flag(&ast_options, AST_OPT_FLAG_NO_COLOR)
#define ast_opt_no_fork   ast_test_flag(&ast_options, AST_OPT_FLAG_NO_FORK)
#define ast_opt_override_config   ast_test_flag(&ast_options, AST_OPT_FLAG_OVERRIDE_CONFIG)
#define ast_opt_quiet   ast_test_flag(&ast_options, AST_OPT_FLAG_QUIET)
#define ast_opt_reconnect   ast_test_flag(&ast_options, AST_OPT_FLAG_RECONNECT)
#define ast_opt_remote   ast_test_flag(&ast_options, AST_OPT_FLAG_REMOTE)
#define ast_opt_timestamp   ast_test_flag(&ast_options, AST_OPT_FLAG_TIMESTAMP)
#define ast_opt_transcode_via_slin   ast_test_flag(&ast_options, AST_OPT_FLAG_TRANSCODE_VIA_SLIN)
#define ast_opt_transmit_silence   ast_test_flag(&ast_options, AST_OPT_FLAG_TRANSMIT_SILENCE)
#define ast_opt_verb_file   ast_test_flag(&ast_options, AST_OPT_FLAG_VERBOSE_FILE)

Enumerations

enum  ast_compat_flags { AST_COMPAT_DELIM_PBX_REALTIME = (1 << 0), AST_COMPAT_DELIM_RES_AGI = (1 << 1), AST_COMPAT_APP_SET = (1 << 2) }
enum  ast_option_flags {
  AST_OPT_FLAG_EXEC_INCLUDES = (1 << 0), AST_OPT_FLAG_NO_FORK = (1 << 1), AST_OPT_FLAG_QUIET = (1 << 2), AST_OPT_FLAG_CONSOLE = (1 << 3),
  AST_OPT_FLAG_HIGH_PRIORITY = (1 << 4), AST_OPT_FLAG_INIT_KEYS = (1 << 5), AST_OPT_FLAG_REMOTE = (1 << 6), AST_OPT_FLAG_EXEC = (1 << 7),
  AST_OPT_FLAG_NO_COLOR = (1 << 8), AST_OPT_FLAG_FULLY_BOOTED = (1 << 9), AST_OPT_FLAG_TRANSCODE_VIA_SLIN = (1 << 10), AST_OPT_FLAG_DUMP_CORE = (1 << 12),
  AST_OPT_FLAG_CACHE_RECORD_FILES = (1 << 13), AST_OPT_FLAG_TIMESTAMP = (1 << 14), AST_OPT_FLAG_OVERRIDE_CONFIG = (1 << 15), AST_OPT_FLAG_RECONNECT = (1 << 16),
  AST_OPT_FLAG_TRANSMIT_SILENCE = (1 << 17), AST_OPT_FLAG_DONT_WARN = (1 << 18), AST_OPT_FLAG_END_CDR_BEFORE_H_EXTEN = (1 << 19), AST_OPT_FLAG_INTERNAL_TIMING = (1 << 20),
  AST_OPT_FLAG_ALWAYS_FORK = (1 << 21), AST_OPT_FLAG_MUTE = (1 << 22), AST_OPT_FLAG_DEBUG_FILE = (1 << 23), AST_OPT_FLAG_VERBOSE_FILE = (1 << 24)
}

Variables

struct ast_flags ast_compat
int ast_language_is_prefix
struct timeval ast_lastreloadtime
pid_t ast_mainpid
struct ast_flags ast_options
struct timeval ast_startuptime
char defaultlanguage []
int option_debug
int option_maxcalls
int option_maxfiles
double option_maxload
int option_verbose
char record_cache_dir [AST_CACHE_DIR_LEN]


Detailed Description

Options provided by main asterisk program.

Definition in file options.h.


Define Documentation

#define AST_CACHE_DIR_LEN   512

Definition at line 30 of file options.h.

Referenced by ast_readconfig().

#define AST_CHANNEL_NAME   80

Max length of an ast_channel name

Definition at line 32 of file options.h.

#define ast_compat_app_set   ast_test_flag(&ast_compat, AST_COMPAT_APP_SET)

Definition at line 125 of file options.h.

Referenced by pbx_builtin_setvar().

#define ast_compat_pbx_realtime   ast_test_flag(&ast_compat, AST_COMPAT_DELIM_PBX_REALTIME)

Definition at line 123 of file options.h.

Referenced by realtime_exec().

#define ast_compat_res_agi   ast_test_flag(&ast_compat, AST_COMPAT_DELIM_RES_AGI)

Definition at line 124 of file options.h.

Referenced by handle_exec().

#define AST_DEFAULT_OPTIONS   AST_OPT_FLAG_TRANSCODE_VIA_SLIN

These are the options that set by default when Asterisk starts

Definition at line 88 of file options.h.

#define AST_FILENAME_MAX   80

Definition at line 31 of file options.h.

#define ast_fully_booted   ast_test_flag(&ast_options, AST_OPT_FLAG_FULLY_BOOTED)

#define ast_opt_always_fork   ast_test_flag(&ast_options, AST_OPT_FLAG_ALWAYS_FORK)

Definition at line 110 of file options.h.

Referenced by main().

#define ast_opt_cache_record_files   ast_test_flag(&ast_options, AST_OPT_FLAG_CACHE_RECORD_FILES)

Definition at line 102 of file options.h.

Referenced by ast_writefile().

#define ast_opt_console   ast_test_flag(&ast_options, AST_OPT_FLAG_CONSOLE)

Definition at line 93 of file options.h.

Referenced by ast_term_init(), console_verboser(), load_resource(), main(), and quit_handler().

#define ast_opt_dbg_file   ast_test_flag(&ast_options, AST_OPT_FLAG_DEBUG_FILE)

Definition at line 112 of file options.h.

#define ast_opt_dont_warn   ast_test_flag(&ast_options, AST_OPT_FLAG_DONT_WARN)

Definition at line 107 of file options.h.

Referenced by pbx_exec(), pbx_load_config(), and show_codecs().

#define ast_opt_dump_core   ast_test_flag(&ast_options, AST_OPT_FLAG_DUMP_CORE)

Definition at line 101 of file options.h.

Referenced by main().

#define ast_opt_end_cdr_before_h_exten   ast_test_flag(&ast_options, AST_OPT_FLAG_END_CDR_BEFORE_H_EXTEN)

Definition at line 108 of file options.h.

Referenced by __ast_pbx_run(), and ast_bridge_call().

#define ast_opt_exec   ast_test_flag(&ast_options, AST_OPT_FLAG_EXEC)

Definition at line 97 of file options.h.

Referenced by ast_el_read_char(), ast_remotecontrol(), and main().

#define ast_opt_exec_includes   ast_test_flag(&ast_options, AST_OPT_FLAG_EXEC_INCLUDES)

Definition at line 90 of file options.h.

Referenced by process_text_line().

#define ast_opt_high_priority   ast_test_flag(&ast_options, AST_OPT_FLAG_HIGH_PRIORITY)

#define ast_opt_init_keys   ast_test_flag(&ast_options, AST_OPT_FLAG_INIT_KEYS)

Definition at line 95 of file options.h.

Referenced by load_module(), and try_load_key().

#define ast_opt_internal_timing   ast_test_flag(&ast_options, AST_OPT_FLAG_INTERNAL_TIMING)

Definition at line 109 of file options.h.

Referenced by ast_internal_timing_enabled().

#define ast_opt_mute   ast_test_flag(&ast_options, AST_OPT_FLAG_MUTE)

Definition at line 111 of file options.h.

Referenced by ast_el_read_char(), and ast_remotecontrol().

#define ast_opt_no_color   ast_test_flag(&ast_options, AST_OPT_FLAG_NO_COLOR)

Definition at line 98 of file options.h.

Referenced by ast_term_init().

#define ast_opt_no_fork   ast_test_flag(&ast_options, AST_OPT_FLAG_NO_FORK)

Definition at line 91 of file options.h.

Referenced by ast_term_init(), and main().

#define ast_opt_override_config   ast_test_flag(&ast_options, AST_OPT_FLAG_OVERRIDE_CONFIG)

Definition at line 104 of file options.h.

Referenced by ast_readconfig().

#define ast_opt_quiet   ast_test_flag(&ast_options, AST_OPT_FLAG_QUIET)

Definition at line 92 of file options.h.

Referenced by load_modules().

#define ast_opt_reconnect   ast_test_flag(&ast_options, AST_OPT_FLAG_RECONNECT)

Definition at line 105 of file options.h.

Referenced by ast_el_read_char().

#define ast_opt_remote   ast_test_flag(&ast_options, AST_OPT_FLAG_REMOTE)

Definition at line 96 of file options.h.

Referenced by cli_complete(), cli_prompt(), main(), and quit_handler().

#define ast_opt_timestamp   ast_test_flag(&ast_options, AST_OPT_FLAG_TIMESTAMP)

Definition at line 103 of file options.h.

Referenced by ast_verbose().

#define ast_opt_transcode_via_slin   ast_test_flag(&ast_options, AST_OPT_FLAG_TRANSCODE_VIA_SLIN)

Definition at line 100 of file options.h.

Referenced by ast_channel_make_compatible_helper().

#define ast_opt_transmit_silence   ast_test_flag(&ast_options, AST_OPT_FLAG_TRANSMIT_SILENCE)

Definition at line 106 of file options.h.

Referenced by __ast_play_and_record(), ast_dtmf_stream(), and record_exec().

#define ast_opt_verb_file   ast_test_flag(&ast_options, AST_OPT_FLAG_VERBOSE_FILE)

Definition at line 113 of file options.h.


Enumeration Type Documentation

Enumerator:
AST_COMPAT_DELIM_PBX_REALTIME 
AST_COMPAT_DELIM_RES_AGI 
AST_COMPAT_APP_SET 

Definition at line 117 of file options.h.

00117                       {
00118    AST_COMPAT_DELIM_PBX_REALTIME = (1 << 0),
00119    AST_COMPAT_DELIM_RES_AGI = (1 << 1),
00120    AST_COMPAT_APP_SET = (1 << 2),
00121 };


Variable Documentation

Definition at line 56 of file file.c.

Referenced by ast_readconfig(), handle_show_settings(), and main().

struct timeval ast_lastreloadtime

pid_t ast_mainpid

Definition at line 174 of file asterisk.c.

Referenced by safe_append(), and scan_service().

struct timeval ast_startuptime

Definition at line 198 of file asterisk.c.

Referenced by __ast_channel_alloc_ap(), and handle_show_settings().

char record_cache_dir[AST_CACHE_DIR_LEN]

Definition at line 170 of file asterisk.c.

Referenced by ast_writefile().


Generated on Wed Oct 28 11:46:14 2009 for Asterisk - the Open Source PBX by  doxygen 1.5.6