Asterisk - The Open Source Telephony Project  GIT-master-93d0901
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_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_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_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 38 of file options.h.

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

Variable Documentation

◆ 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 81 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 75 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 74 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 89 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 1 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 73 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 64 of file options.c.

Referenced by ast_verb_update(), and main().

◆ option_debug

int option_debug

Debug level

Definition at line 69 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 83 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 86 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 71 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 67 of file options.c.

Referenced by load_asterisk_conf().