Asterisk - The Open Source Telephony Project
18.5.0
|
Options provided by main asterisk program. More...
#include "asterisk/autoconfig.h"
Go to the source code of this file.
Variables | |
char | ast_defaultlanguage [] |
int | ast_language_is_prefix |
The following variable controls the layout of localized sound files. If 0, use the historical layout with prefix just before the filename (i.e. digits/en/1.gsm , digits/it/1.gsm or default to digits/1.gsm), if 1 put the prefix at the beginning of the filename (i.e. en/digits/1.gsm, it/digits/1.gsm or default to digits/1.gsm). The latter permits a language to be entirely in one directory. More... | |
struct timeval | ast_lastreloadtime |
pid_t | ast_mainpid |
int | ast_option_maxcalls |
int | ast_option_maxfiles |
double | ast_option_maxload |
int | ast_option_pjproject_cache_pools |
int | ast_option_pjproject_log_level |
unsigned int | ast_option_rtpptdynamic |
int | ast_option_rtpusedynamic |
struct ast_flags | ast_options |
int | ast_pjproject_max_log_level |
struct timeval | ast_startuptime |
int | option_debug |
unsigned int | option_dtmfminduration |
long | option_minmemfree |
int | option_trace |
int | option_verbose |
char | record_cache_dir [AST_CACHE_DIR_LEN] |
Options provided by main asterisk program.
Definition in file options.h.
#define AST_CACHE_DIR_LEN 512 |
Definition at line 32 of file options.h.
Referenced by load_asterisk_conf().
#define AST_CHANNEL_NAME 80 |
Max length of an ast_channel name
#define AST_DEFAULT_OPTIONS (AST_OPT_FLAG_TRANSCODE_VIA_SLIN | AST_OPT_FLAG_CACHE_MEDIA_FRAMES) |
#define ast_fully_booted ast_test_flag(&ast_options, AST_OPT_FLAG_FULLY_BOOTED) |
Definition at line 115 of file options.h.
Referenced by ast_ari_callback(), load_module(), load_resource(), scan_thread(), start_resource(), and tzload().
#define ast_opt_always_fork ast_test_flag(&ast_options, AST_OPT_FLAG_ALWAYS_FORK) |
Definition at line 126 of file options.h.
Referenced by asterisk_daemon(), and main().
#define ast_opt_cache_media_frames ast_test_flag(&ast_options, AST_OPT_FLAG_CACHE_MEDIA_FRAMES) |
Definition at line 121 of file options.h.
Referenced by __frame_free(), handle_show_settings(), and iax_frame_free().
#define ast_opt_cache_record_files ast_test_flag(&ast_options, AST_OPT_FLAG_CACHE_RECORD_FILES) |
Definition at line 120 of file options.h.
Referenced by ast_writefile().
#define ast_opt_console ast_test_flag(&ast_options, AST_OPT_FLAG_CONSOLE) |
Definition at line 109 of file options.h.
Referenced by ast_console_puts_mutable_full(), ast_term_init(), asterisk_daemon(), can_safely_quit(), load_module(), main(), print_intro_message(), and really_quit().
#define ast_opt_dbg_module ast_test_flag(&ast_options, AST_OPT_FLAG_DEBUG_MODULE) |
#define ast_opt_dont_warn ast_test_flag(&ast_options, AST_OPT_FLAG_DONT_WARN) |
Definition at line 125 of file options.h.
Referenced by filter(), pbx_load_config(), and show_codecs().
#define ast_opt_dump_core ast_test_flag(&ast_options, AST_OPT_FLAG_DUMP_CORE) |
#define ast_opt_exec ast_test_flag(&ast_options, AST_OPT_FLAG_EXEC) |
Definition at line 113 of file options.h.
Referenced by ast_el_read_char(), ast_log_full(), ast_remotecontrol(), main(), print_intro_message(), and really_quit().
#define ast_opt_exec_includes ast_test_flag(&ast_options, AST_OPT_FLAG_EXEC_INCLUDES) |
Definition at line 106 of file options.h.
Referenced by process_text_line().
#define ast_opt_force_black_background ast_test_flag(&ast_options, AST_OPT_FLAG_FORCE_BLACK_BACKGROUND) |
Definition at line 131 of file options.h.
Referenced by ast_term_color_code(), ast_term_init(), term_color(), and term_color_code().
#define ast_opt_generic_plc ast_test_flag(&ast_options, AST_OPT_FLAG_GENERIC_PLC) |
Definition at line 134 of file options.h.
Referenced by ast_channel_make_compatible_helper(), ast_write_stream(), generate_interpolated_slin(), and reload_module().
#define ast_opt_generic_plc_on_equal_codecs ast_test_flag(&ast_options, AST_OPT_FLAG_GENERIC_PLC_ON_EQUAL_CODECS) |
Definition at line 136 of file options.h.
Referenced by ast_channel_make_compatible_helper().
#define ast_opt_hide_connect ast_test_flag(&ast_options, AST_OPT_FLAG_HIDE_CONSOLE_CONNECT) |
Definition at line 132 of file options.h.
Referenced by listener(), and netconsole().
#define ast_opt_hide_messaging_ami_events ast_test_flag(&ast_options, AST_OPT_FLAG_HIDE_MESSAGING_AMI_EVENTS) |
Definition at line 137 of file options.h.
Referenced by create_msg_q_chan(), and handle_show_settings().
#define ast_opt_high_priority ast_test_flag(&ast_options, AST_OPT_FLAG_HIGH_PRIORITY) |
Definition at line 110 of file options.h.
Referenced by app_exec(), asterisk_daemon(), icesencode(), main(), mp3play(), NBScatplay(), safe_exec_prep(), send_waveform_to_fd(), spawn_mp3(), and spawn_ras().
#define ast_opt_init_keys ast_test_flag(&ast_options, AST_OPT_FLAG_INIT_KEYS) |
Definition at line 111 of file options.h.
Referenced by load_module(), and try_load_key().
#define ast_opt_light_background ast_test_flag(&ast_options, AST_OPT_FLAG_LIGHT_BACKGROUND) |
Definition at line 130 of file options.h.
Referenced by ast_term_init(), ast_xmldoc_printable(), check_fgcolor(), and term_color().
#define ast_opt_lock_confdir ast_test_flag(&ast_options, AST_OPT_FLAG_LOCK_CONFIG_DIR) |
Definition at line 133 of file options.h.
Referenced by ast_module_reload().
#define ast_opt_mute ast_test_flag(&ast_options, AST_OPT_FLAG_MUTE) |
Definition at line 127 of file options.h.
Referenced by send_rasterisk_connect_commands().
#define ast_opt_no_color ast_test_flag(&ast_options, AST_OPT_FLAG_NO_COLOR) |
Definition at line 114 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 107 of file options.h.
Referenced by asterisk_daemon(), and main().
#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) |
Definition at line 123 of file options.h.
Referenced by ast_el_read_char().
#define ast_opt_ref_debug ast_test_flag(&ast_options, AST_OPT_FLAG_REF_DEBUG) |
Definition at line 135 of file options.h.
Referenced by ast_module_register(), astobj2_cleanup(), and astobj2_init().
#define ast_opt_remote ast_test_flag(&ast_options, AST_OPT_FLAG_REMOTE) |
Definition at line 112 of file options.h.
Referenced by ast_log_full(), cli_complete(), cli_prompt(), load_asterisk_conf(), main(), print_intro_message(), and really_quit().
#define ast_opt_stdexten_macro ast_test_flag(&ast_options, AST_OPT_FLAG_STDEXTEN_MACRO) |
Invoke the stdexten using the legacy macro method.
Definition at line 118 of file options.h.
Referenced by pbx_load_users().
#define ast_opt_timestamp ast_test_flag(&ast_options, AST_OPT_FLAG_TIMESTAMP) |
Definition at line 122 of file options.h.
Referenced by set_header().
#define ast_opt_trace_module ast_test_flag(&ast_options, AST_OPT_FLAG_TRACE_MODULE) |
#define ast_opt_transcode_via_slin ast_test_flag(&ast_options, AST_OPT_FLAG_TRANSCODE_VIA_SLIN) |
Definition at line 116 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 124 of file options.h.
Referenced by __ast_play_and_record(), ast_readstring_full(), control_streamfile(), dtmf_stream(), mf_stream(), record_exec(), safe_sleep_conditional(), waitfor_exec(), and waitforring_exec().
#define AST_PJPROJECT_INIT_LOG_LEVEL | ( | ) |
Get maximum log level pjproject was compiled with.
Determine the maximum log level the pjproject we are running with supports.
When pjproject is initially loaded the default log level in effect is the maximum log level the library was compiled to generate. We must save this value off somewhere before we change it to what we want to use as the default level.
Definition at line 166 of file options.h.
Referenced by ast_pj_init(), and load_module().
#define DEFAULT_PJ_LOG_MAX_LEVEL 2 |
Normal PJPROJECT active log level used by Asterisk.
These levels are usually mapped to Error and Warning Asterisk log levels which shouldn't normally be suppressed.
Definition at line 148 of file options.h.
Referenced by handle_pjproject_set_log_level(), handle_pjproject_show_log_level(), and read_pjproject_startup_options().
#define DEFAULT_PJPROJECT_CACHE_POOLS 1 |
Definition at line 177 of file options.h.
Referenced by read_pjproject_startup_options().
#define MAX_PJ_LOG_MAX_LEVEL 6 |
Maximum log level defined by PJPROJECT.
Definition at line 140 of file options.h.
Referenced by handle_pjproject_set_log_level(), load_module(), and read_pjproject_startup_options().
char ast_defaultlanguage[] |
Definition at line 98 of file options.c.
Referenced by __ast_channel_alloc_ap(), ast_ari_asterisk_get_info(), and handle_show_settings().
int ast_language_is_prefix |
The following variable controls the layout of localized sound files. If 0, use the historical layout with prefix just before the filename (i.e. digits/en/1.gsm , digits/it/1.gsm or default to digits/1.gsm), if 1 put the prefix at the beginning of the filename (i.e. en/digits/1.gsm, it/digits/1.gsm or default to digits/1.gsm). The latter permits a language to be entirely in one directory.
This is settable in asterisk.conf.
Definition at line 67 of file file.c.
Referenced by handle_show_settings(), load_asterisk_conf(), and main().
struct timeval ast_lastreloadtime |
Definition at line 337 of file asterisk.c.
Referenced by action_corestatus(), action_login(), ast_ari_asterisk_get_info(), ast_module_reload(), ast_var_Config(), asterisk_daemon(), get_last_reload_cb(), handle_show_settings(), handle_showuptime(), and publish_fully_booted().
pid_t ast_mainpid |
Definition at line 315 of file asterisk.c.
Referenced by safe_append(), and scan_service().
struct timeval ast_startuptime |
Definition at line 336 of file asterisk.c.
Referenced by action_corestatus(), action_login(), ast_ari_asterisk_get_info(), ast_var_Config(), asterisk_daemon(), get_core_uptime_cb(), handle_show_settings(), handle_showcalls(), handle_showuptime(), and publish_fully_booted().
char record_cache_dir[AST_CACHE_DIR_LEN] |
Definition at line 96 of file options.c.
Referenced by ast_writefile().