Wed Jan 8 2020 09:50:22

Asterisk developer's documentation


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_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_MODULE = (1 << 23), AST_OPT_FLAG_VERBOSE_MODULE = (1 << 24),
  AST_OPT_FLAG_LIGHT_BACKGROUND = (1 << 25), AST_OPT_FLAG_INITIATED_SECONDS = (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)
}
 

Variables

struct ast_flags ast_compat = { 0 }
 
struct ast_flags ast_options = { AST_DEFAULT_OPTIONS }
 
int option_debug
 
int option_maxcalls
 
int option_maxfiles
 
double option_maxload
 
long option_minmemfree
 
int option_verbose
 

Detailed Description

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

Enumeration Type Documentation

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_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_END_CDR_BEFORE_H_EXTEN 

End CDRs before the 'h' extension

AST_OPT_FLAG_INTERNAL_TIMING 

Use DAHDI Timing for generators if available (No longer used)

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_VERBOSE_MODULE 

There is a per-module verbose setting

AST_OPT_FLAG_LIGHT_BACKGROUND 

Terminal colors should be adjusted for a light-colored background

AST_OPT_FLAG_INITIATED_SECONDS 

Count Initiated seconds in CDR's

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

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  /*! Dump core on a seg fault */
62  AST_OPT_FLAG_DUMP_CORE = (1 << 12),
63  /*! Cache sound files */
65  /*! Display timestamp in CLI verbose output */
66  AST_OPT_FLAG_TIMESTAMP = (1 << 14),
67  /*! Override config */
68  AST_OPT_FLAG_OVERRIDE_CONFIG = (1 << 15),
69  /*! Reconnect */
70  AST_OPT_FLAG_RECONNECT = (1 << 16),
71  /*! Transmit Silence during Record() and DTMF Generation */
73  /*! Suppress some warnings */
74  AST_OPT_FLAG_DONT_WARN = (1 << 18),
75  /*! End CDRs before the 'h' extension */
77  /*! Use DAHDI Timing for generators if available (No longer used) */
78  AST_OPT_FLAG_INTERNAL_TIMING = (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 verbose setting */
86  AST_OPT_FLAG_VERBOSE_MODULE = (1 << 24),
87  /*! Terminal colors should be adjusted for a light-colored background */
89  /*! Count Initiated seconds in CDR's */
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 };

Variable Documentation

struct ast_flags ast_compat = { 0 }

Definition at line 179 of file asterisk.c.

int option_maxcalls

Max number of active calls

Definition at line 184 of file asterisk.c.

Referenced by action_coresettings(), handle_chanlist(), handle_showcalls(), and increase_call_count().

int option_maxfiles

Max number of open file handles (files, sockets)

Definition at line 185 of file asterisk.c.

Referenced by action_coresettings().

double option_maxload

Max load avg on system

Definition at line 183 of file asterisk.c.

Referenced by action_coresettings(), and increase_call_count().

long option_minmemfree

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

Definition at line 187 of file asterisk.c.

Referenced by increase_call_count().