23 #ifndef _ASTERISK_OPTIONS_H
24 #define _ASTERISK_OPTIONS_H
28 #if defined(__cplusplus) || defined(c_plusplus)
32 #define AST_CACHE_DIR_LEN 512
33 #define AST_FILENAME_MAX 80
34 #define AST_CHANNEL_NAME 80
104 #define AST_DEFAULT_OPTIONS (AST_OPT_FLAG_TRANSCODE_VIA_SLIN | AST_OPT_FLAG_CACHE_MEDIA_FRAMES)
106 #define ast_opt_exec_includes ast_test_flag(&ast_options, AST_OPT_FLAG_EXEC_INCLUDES)
107 #define ast_opt_no_fork ast_test_flag(&ast_options, AST_OPT_FLAG_NO_FORK)
108 #define ast_opt_quiet ast_test_flag(&ast_options, AST_OPT_FLAG_QUIET)
109 #define ast_opt_console ast_test_flag(&ast_options, AST_OPT_FLAG_CONSOLE)
110 #define ast_opt_high_priority ast_test_flag(&ast_options, AST_OPT_FLAG_HIGH_PRIORITY)
111 #define ast_opt_init_keys ast_test_flag(&ast_options, AST_OPT_FLAG_INIT_KEYS)
112 #define ast_opt_remote ast_test_flag(&ast_options, AST_OPT_FLAG_REMOTE)
113 #define ast_opt_exec ast_test_flag(&ast_options, AST_OPT_FLAG_EXEC)
114 #define ast_opt_no_color ast_test_flag(&ast_options, AST_OPT_FLAG_NO_COLOR)
115 #define ast_fully_booted ast_test_flag(&ast_options, AST_OPT_FLAG_FULLY_BOOTED)
116 #define ast_opt_transcode_via_slin ast_test_flag(&ast_options, AST_OPT_FLAG_TRANSCODE_VIA_SLIN)
118 #define ast_opt_stdexten_macro ast_test_flag(&ast_options, AST_OPT_FLAG_STDEXTEN_MACRO)
119 #define ast_opt_dump_core ast_test_flag(&ast_options, AST_OPT_FLAG_DUMP_CORE)
120 #define ast_opt_cache_record_files ast_test_flag(&ast_options, AST_OPT_FLAG_CACHE_RECORD_FILES)
121 #define ast_opt_cache_media_frames ast_test_flag(&ast_options, AST_OPT_FLAG_CACHE_MEDIA_FRAMES)
122 #define ast_opt_timestamp ast_test_flag(&ast_options, AST_OPT_FLAG_TIMESTAMP)
123 #define ast_opt_reconnect ast_test_flag(&ast_options, AST_OPT_FLAG_RECONNECT)
124 #define ast_opt_transmit_silence ast_test_flag(&ast_options, AST_OPT_FLAG_TRANSMIT_SILENCE)
125 #define ast_opt_dont_warn ast_test_flag(&ast_options, AST_OPT_FLAG_DONT_WARN)
126 #define ast_opt_always_fork ast_test_flag(&ast_options, AST_OPT_FLAG_ALWAYS_FORK)
127 #define ast_opt_mute ast_test_flag(&ast_options, AST_OPT_FLAG_MUTE)
128 #define ast_opt_dbg_module ast_test_flag(&ast_options, AST_OPT_FLAG_DEBUG_MODULE)
129 #define ast_opt_trace_module ast_test_flag(&ast_options, AST_OPT_FLAG_TRACE_MODULE)
130 #define ast_opt_light_background ast_test_flag(&ast_options, AST_OPT_FLAG_LIGHT_BACKGROUND)
131 #define ast_opt_force_black_background ast_test_flag(&ast_options, AST_OPT_FLAG_FORCE_BLACK_BACKGROUND)
132 #define ast_opt_hide_connect ast_test_flag(&ast_options, AST_OPT_FLAG_HIDE_CONSOLE_CONNECT)
133 #define ast_opt_lock_confdir ast_test_flag(&ast_options, AST_OPT_FLAG_LOCK_CONFIG_DIR)
134 #define ast_opt_generic_plc ast_test_flag(&ast_options, AST_OPT_FLAG_GENERIC_PLC)
135 #define ast_opt_ref_debug ast_test_flag(&ast_options, AST_OPT_FLAG_REF_DEBUG)
136 #define ast_opt_generic_plc_on_equal_codecs ast_test_flag(&ast_options, AST_OPT_FLAG_GENERIC_PLC_ON_EQUAL_CODECS)
137 #define ast_opt_hide_messaging_ami_events ast_test_flag(&ast_options, AST_OPT_FLAG_HIDE_MESSAGING_AMI_EVENTS)
140 #define MAX_PJ_LOG_MAX_LEVEL 6
148 #define DEFAULT_PJ_LOG_MAX_LEVEL 2
166 #define AST_PJPROJECT_INIT_LOG_LEVEL() \
168 if (ast_pjproject_max_log_level < 0) { \
169 ast_pjproject_max_log_level = pj_log_get_level(); \
171 pj_log_set_level(ast_option_pjproject_log_level); \
177 #define DEFAULT_PJPROJECT_CACHE_POOLS 1
194 #if defined(HAVE_SYSINFO)
210 #if defined(__cplusplus) || defined(c_plusplus)
int ast_option_rtpusedynamic
int ast_pjproject_max_log_level
int ast_option_pjproject_log_level
double ast_option_maxload
unsigned int ast_option_rtpptdynamic
struct ast_flags ast_options
unsigned int option_dtmfminduration
int ast_option_pjproject_cache_pools
@ AST_OPT_FLAG_TRACE_MODULE
@ AST_OPT_FLAG_HIGH_PRIORITY
@ AST_OPT_FLAG_GENERIC_PLC
@ AST_OPT_FLAG_HIDE_MESSAGING_AMI_EVENTS
@ AST_OPT_FLAG_TRANSCODE_VIA_SLIN
@ AST_OPT_FLAG_HIDE_CONSOLE_CONNECT
@ AST_OPT_FLAG_EXEC_INCLUDES
@ AST_OPT_FLAG_DEBUG_MODULE
@ AST_OPT_FLAG_TRANSMIT_SILENCE
@ AST_OPT_FLAG_ALWAYS_FORK
@ AST_OPT_FLAG_GENERIC_PLC_ON_EQUAL_CODECS
@ AST_OPT_FLAG_STDEXTEN_MACRO
@ AST_OPT_FLAG_CACHE_MEDIA_FRAMES
@ AST_OPT_FLAG_LOCK_CONFIG_DIR
@ AST_OPT_FLAG_CACHE_RECORD_FILES
@ AST_OPT_FLAG_FULLY_BOOTED
@ AST_OPT_FLAG_FORCE_BLACK_BACKGROUND
@ AST_OPT_FLAG_LIGHT_BACKGROUND
char record_cache_dir[AST_CACHE_DIR_LEN]
int ast_language_is_prefix
The following variable controls the layout of localized sound files. If 0, use the historical layout ...
#define AST_CACHE_DIR_LEN
struct timeval ast_lastreloadtime
struct timeval ast_startuptime
char ast_defaultlanguage[]
Structure used to handle boolean flags.