Asterisk - The Open Source Telephony Project GIT-master-c7a8271
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
Enumerations | Variables
Main Configuration Options

Main configuration options from asterisk.conf or OS command line on starting Asterisk. More...

Enumerations

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_STDEXTEN_MACRO = (1 << 11) ,
  AST_OPT_FLAG_DUMP_CORE = (1 << 12) , AST_OPT_FLAG_CACHE_RECORD_FILES = (1 << 13) , AST_OPT_FLAG_TIMESTAMP = (1 << 14) , AST_OPT_FLAG_CACHE_MEDIA_FRAMES = (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_SOUNDS_SEARCH_CUSTOM = (1 << 19) ,
  AST_OPT_FLAG_REF_DEBUG = (1 << 20) , AST_OPT_FLAG_ALWAYS_FORK = (1 << 21) , AST_OPT_FLAG_MUTE = (1 << 22) , AST_OPT_FLAG_DEBUG_MODULE = (1 << 23) ,
  AST_OPT_FLAG_TRACE_MODULE = (1 << 24) , AST_OPT_FLAG_LIGHT_BACKGROUND = (1 << 25) , AST_OPT_FLAG_HIDE_MESSAGING_AMI_EVENTS = (1 << 26) , AST_OPT_FLAG_FORCE_BLACK_BACKGROUND = (1 << 27) ,
  AST_OPT_FLAG_HIDE_CONSOLE_CONNECT = (1 << 28) , AST_OPT_FLAG_LOCK_CONFIG_DIR = (1 << 29) , AST_OPT_FLAG_GENERIC_PLC = (1 << 30) , AST_OPT_FLAG_GENERIC_PLC_ON_EQUAL_CODECS = (1 << 31) ,
  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_ALWAYS_FORK = (1 << 21) , AST_OPT_FLAG_MUTE = (1 << 22) ,
  AST_OPT_FLAG_DEBUG_FILE = (1 << 23) , AST_OPT_FLAG_LIGHT_BACKGROUND = (1 << 25) , AST_OPT_FLAG_FORCE_BLACK_BACKGROUND = (1 << 27)
}
 

Variables

int ast_option_disable_remote_console_shell = 0
 
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 = 35
 
int ast_option_rtpusedynamic = 1
 
struct ast_flags ast_options = { AST_DEFAULT_OPTIONS }
 
int ast_pjproject_max_log_level = -1
 
int ast_verb_sys_level
 
int option_debug
 
unsigned int option_dtmfminduration = AST_MIN_DTMF_DURATION
 
long option_minmemfree
 
int option_trace
 
int option_verbose
 

Detailed Description

Main configuration options from asterisk.conf or OS command line on starting Asterisk.

Enumeration Type Documentation

◆ ast_option_flags

Enumerator
AST_OPT_FLAG_EXEC_INCLUDES 

Allow #exec in config files

AST_OPT_FLAG_NO_FORK 

Do not fork()

AST_OPT_FLAG_QUIET 

Keep quiet

AST_OPT_FLAG_CONSOLE 

Console mode

AST_OPT_FLAG_HIGH_PRIORITY 

Run in realtime Linux priority

AST_OPT_FLAG_INIT_KEYS 

Initialize keys for RSA authentication

AST_OPT_FLAG_REMOTE 

Remote console

AST_OPT_FLAG_EXEC 

Execute an asterisk CLI command upon startup

AST_OPT_FLAG_NO_COLOR 

Don't use termcap colors

AST_OPT_FLAG_FULLY_BOOTED 

Are we fully started yet?

AST_OPT_FLAG_TRANSCODE_VIA_SLIN 

Trascode via signed linear

AST_OPT_FLAG_STDEXTEN_MACRO 

Invoke the stdexten using the legacy macro method.

AST_OPT_FLAG_DUMP_CORE 

Dump core on a seg fault

AST_OPT_FLAG_CACHE_RECORD_FILES 

Cache sound files

AST_OPT_FLAG_TIMESTAMP 

Display timestamp in CLI verbose output

AST_OPT_FLAG_CACHE_MEDIA_FRAMES 

Cache media frames for performance

AST_OPT_FLAG_RECONNECT 

Reconnect

AST_OPT_FLAG_TRANSMIT_SILENCE 

Transmit Silence during Record() and DTMF Generation

AST_OPT_FLAG_DONT_WARN 

Suppress some warnings

AST_OPT_FLAG_SOUNDS_SEARCH_CUSTOM 

Search custom directory for sounds first

AST_OPT_FLAG_REF_DEBUG 

Reference Debugging

AST_OPT_FLAG_ALWAYS_FORK 

Always fork, even if verbose or debug settings are non-zero

AST_OPT_FLAG_MUTE 

Disable log/verbose output to remote consoles

AST_OPT_FLAG_DEBUG_MODULE 

There is a per-module debug setting

AST_OPT_FLAG_TRACE_MODULE 

There is a per-module trace setting

AST_OPT_FLAG_LIGHT_BACKGROUND 

Terminal colors should be adjusted for a light-colored background

AST_OPT_FLAG_HIDE_MESSAGING_AMI_EVENTS 

Make the global Message channel an internal channel to suppress AMI events

AST_OPT_FLAG_FORCE_BLACK_BACKGROUND 

Force black background

AST_OPT_FLAG_HIDE_CONSOLE_CONNECT 

Hide remote console connect messages on console

AST_OPT_FLAG_LOCK_CONFIG_DIR 

Protect the configuration file path with a lock

AST_OPT_FLAG_GENERIC_PLC 

Generic PLC

AST_OPT_FLAG_GENERIC_PLC_ON_EQUAL_CODECS 

Generic PLC onm equal codecs

AST_OPT_FLAG_EXEC_INCLUDES 

Allow #exec in config files

AST_OPT_FLAG_NO_FORK 

Do not fork()

AST_OPT_FLAG_QUIET 

Keep quiet

AST_OPT_FLAG_CONSOLE 

Console mode

AST_OPT_FLAG_HIGH_PRIORITY 

Run in realtime Linux priority

AST_OPT_FLAG_INIT_KEYS 

Initialize keys for RSA authentication

AST_OPT_FLAG_REMOTE 

Remote console

AST_OPT_FLAG_EXEC 

Execute an asterisk CLI command upon startup

AST_OPT_FLAG_NO_COLOR 

Don't use termcap colors

AST_OPT_FLAG_FULLY_BOOTED 

Are we fully started yet?

AST_OPT_FLAG_TRANSCODE_VIA_SLIN 

Trascode via signed linear

AST_OPT_FLAG_DUMP_CORE 

Dump core on a seg fault

AST_OPT_FLAG_CACHE_RECORD_FILES 

Cache sound files

AST_OPT_FLAG_TIMESTAMP 

Display timestamp in CLI verbose output

AST_OPT_FLAG_OVERRIDE_CONFIG 

Override config

AST_OPT_FLAG_RECONNECT 

Reconnect

AST_OPT_FLAG_TRANSMIT_SILENCE 

Transmit Silence during Record() and DTMF Generation

AST_OPT_FLAG_DONT_WARN 

Suppress some warnings

AST_OPT_FLAG_ALWAYS_FORK 

Always fork, even if verbose or debug settings are non-zero

AST_OPT_FLAG_MUTE 

Disable log/verbose output to remote consoles

AST_OPT_FLAG_DEBUG_FILE 

There is a per-file debug setting

AST_OPT_FLAG_LIGHT_BACKGROUND 

Terminal colors should be adjusted for a light-colored background

AST_OPT_FLAG_FORCE_BLACK_BACKGROUND 

Force black background

Definition at line 39 of file options.h.

39 {
40 /*! Allow \#exec in config files */
42 /*! Do not fork() */
43 AST_OPT_FLAG_NO_FORK = (1 << 1),
44 /*! Keep quiet */
45 AST_OPT_FLAG_QUIET = (1 << 2),
46 /*! Console mode */
47 AST_OPT_FLAG_CONSOLE = (1 << 3),
48 /*! Run in realtime Linux priority */
50 /*! Initialize keys for RSA authentication */
51 AST_OPT_FLAG_INIT_KEYS = (1 << 5),
52 /*! Remote console */
53 AST_OPT_FLAG_REMOTE = (1 << 6),
54 /*! Execute an asterisk CLI command upon startup */
55 AST_OPT_FLAG_EXEC = (1 << 7),
56 /*! Don't use termcap colors */
57 AST_OPT_FLAG_NO_COLOR = (1 << 8),
58 /*! Are we fully started yet? */
60 /*! Trascode via signed linear */
62 /*! Invoke the stdexten using the legacy macro method. */
64 /*! Dump core on a seg fault */
65 AST_OPT_FLAG_DUMP_CORE = (1 << 12),
66 /*! Cache sound files */
68 /*! Display timestamp in CLI verbose output */
69 AST_OPT_FLAG_TIMESTAMP = (1 << 14),
70 /*! Cache media frames for performance */
72 /*! Reconnect */
73 AST_OPT_FLAG_RECONNECT = (1 << 16),
74 /*! Transmit Silence during Record() and DTMF Generation */
76 /*! Suppress some warnings */
77 AST_OPT_FLAG_DONT_WARN = (1 << 18),
78 /*! Search custom directory for sounds first */
80 /*! Reference Debugging */
81 AST_OPT_FLAG_REF_DEBUG = (1 << 20),
82 /*! Always fork, even if verbose or debug settings are non-zero */
83 AST_OPT_FLAG_ALWAYS_FORK = (1 << 21),
84 /*! Disable log/verbose output to remote consoles */
85 AST_OPT_FLAG_MUTE = (1 << 22),
86 /*! There is a per-module debug setting */
87 AST_OPT_FLAG_DEBUG_MODULE = (1 << 23),
88 /*! There is a per-module trace setting */
89 AST_OPT_FLAG_TRACE_MODULE = (1 << 24),
90 /*! Terminal colors should be adjusted for a light-colored background */
92 /*! Make the global Message channel an internal channel to suppress AMI events */
94 /*! Force black background */
96 /*! Hide remote console connect messages on console */
98 /*! Protect the configuration file path with a lock */
100 /*! Generic PLC */
101 AST_OPT_FLAG_GENERIC_PLC = (1 << 30),
102 /*! Generic PLC onm equal codecs */
104};
@ AST_OPT_FLAG_TRACE_MODULE
Definition: options.h:89
@ AST_OPT_FLAG_HIGH_PRIORITY
Definition: options.h:49
@ AST_OPT_FLAG_GENERIC_PLC
Definition: options.h:101
@ AST_OPT_FLAG_HIDE_MESSAGING_AMI_EVENTS
Definition: options.h:93
@ AST_OPT_FLAG_TRANSCODE_VIA_SLIN
Definition: options.h:61
@ AST_OPT_FLAG_HIDE_CONSOLE_CONNECT
Definition: options.h:97
@ AST_OPT_FLAG_EXEC_INCLUDES
Definition: options.h:41
@ AST_OPT_FLAG_NO_COLOR
Definition: options.h:57
@ AST_OPT_FLAG_DEBUG_MODULE
Definition: options.h:87
@ AST_OPT_FLAG_NO_FORK
Definition: options.h:43
@ AST_OPT_FLAG_REF_DEBUG
Definition: options.h:81
@ AST_OPT_FLAG_TRANSMIT_SILENCE
Definition: options.h:75
@ AST_OPT_FLAG_ALWAYS_FORK
Definition: options.h:83
@ AST_OPT_FLAG_QUIET
Definition: options.h:45
@ AST_OPT_FLAG_GENERIC_PLC_ON_EQUAL_CODECS
Definition: options.h:103
@ AST_OPT_FLAG_STDEXTEN_MACRO
Definition: options.h:63
@ AST_OPT_FLAG_MUTE
Definition: options.h:85
@ AST_OPT_FLAG_CACHE_MEDIA_FRAMES
Definition: options.h:71
@ AST_OPT_FLAG_TIMESTAMP
Definition: options.h:69
@ AST_OPT_FLAG_LOCK_CONFIG_DIR
Definition: options.h:99
@ AST_OPT_FLAG_EXEC
Definition: options.h:55
@ AST_OPT_FLAG_CACHE_RECORD_FILES
Definition: options.h:67
@ AST_OPT_FLAG_FULLY_BOOTED
Definition: options.h:59
@ AST_OPT_FLAG_INIT_KEYS
Definition: options.h:51
@ AST_OPT_FLAG_CONSOLE
Definition: options.h:47
@ AST_OPT_FLAG_DONT_WARN
Definition: options.h:77
@ AST_OPT_FLAG_FORCE_BLACK_BACKGROUND
Definition: options.h:95
@ AST_OPT_FLAG_LIGHT_BACKGROUND
Definition: options.h:91
@ AST_OPT_FLAG_REMOTE
Definition: options.h:53
@ AST_OPT_FLAG_DUMP_CORE
Definition: options.h:65
@ AST_OPT_FLAG_RECONNECT
Definition: options.h:73
@ AST_OPT_FLAG_SOUNDS_SEARCH_CUSTOM
Definition: options.h:79

Variable Documentation

◆ ast_option_disable_remote_console_shell

int ast_option_disable_remote_console_shell = 0

Definition at line 91 of file options.c.

Referenced by handle_show_settings(), load_asterisk_conf(), and remoteconsolehandler().

◆ ast_option_maxcalls

int ast_option_maxcalls

◆ ast_option_maxfiles

int ast_option_maxfiles

Max number of open file handles (files, sockets)

Definition at line 82 of file options.c.

Referenced by action_coresettings(), ast_ari_asterisk_get_info(), handle_show_settings(), and load_asterisk_conf().

◆ ast_option_maxload

double ast_option_maxload

◆ ast_option_pjproject_cache_pools

int ast_option_pjproject_cache_pools

Current pjproject pool caching enable

Definition at line 76 of file options.c.

Referenced by ast_pjproject_caching_pool_init(), and read_pjproject_startup_options().

◆ ast_option_pjproject_log_level

int ast_option_pjproject_log_level

Current pjproject logging level

Definition at line 75 of file options.c.

Referenced by handle_pjproject_set_log_level(), handle_pjproject_show_log_level(), load_module(), and read_pjproject_startup_options().

◆ ast_option_rtpptdynamic

unsigned int ast_option_rtpptdynamic = 35

Definition at line 90 of file options.c.

Referenced by find_unused_payload(), handle_show_settings(), and load_asterisk_conf().

◆ ast_option_rtpusedynamic

int ast_option_rtpusedynamic = 1

◆ ast_options

struct ast_flags ast_options = { AST_DEFAULT_OPTIONS }

Definition at line 62 of file options.c.

Referenced by load_asterisk_conf().

◆ ast_pjproject_max_log_level

int ast_pjproject_max_log_level = -1

Default to -1 to know if we have read the level from pjproject yet.

Definition at line 74 of file options.c.

Referenced by handle_pjproject_set_log_level(), and load_module().

◆ ast_verb_sys_level

int ast_verb_sys_level

Maximum active system verbosity level.

Definition at line 65 of file options.c.

Referenced by ast_verb_update(), and main().

◆ option_debug

int option_debug

Debug level

Definition at line 70 of file options.c.

Referenced by load_asterisk_conf().

◆ option_dtmfminduration

unsigned int option_dtmfminduration = AST_MIN_DTMF_DURATION

Minimum duration of DTMF.

Definition at line 84 of file options.c.

Referenced by __ast_read(), ast_channel_end_dtmf(), bridge_channel_settle_owed_events(), handle_show_settings(), and load_asterisk_conf().

◆ option_minmemfree

long option_minmemfree

Minimum amount of free system memory - stop accepting calls if free memory falls below this watermark

Definition at line 87 of file options.c.

Referenced by handle_show_settings(), increase_call_count(), load_asterisk_conf(), and main().

◆ option_trace

int option_trace

Trace level

Definition at line 72 of file options.c.

Referenced by handle_debug_or_trace(), handle_show_settings(), and load_asterisk_conf().

◆ option_verbose

int option_verbose

Verbosity level

Definition at line 68 of file options.c.

Referenced by load_asterisk_conf().