asterisk.conf
The asterisk.conf file defines the locations
for the configuration files, the spool directory, and the modules, as
well as a location to write log files to. The default settings are
recommended unless you understand the implications of changing them. The
asterisk.conf file is generated automatically when
you run the make samples command,
based on information it collects about your system. It will contain a
[directories] section such as the
following:
[directories]
astetcdir => /etc/asterisk
astmoddir => /usr/lib/asterisk/modules
astvarlibdir => /var/lib/asterisk
astagidir => /var/lib/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run
astlogdir => /var/log/asteriskAdditionally, you can specify an [options] section, which will allow you to
define startup options (command-line switches) in the configuration
file. The following example shows the available options and the
command-line switches that they effectively enforce:
[options]
verbose=<value> ; starting verbosity level (-v)
debug=yes|no|<val> ; turn debugging on or off (or value in 1.2) (-d) nofork=yes|no ; don't fork a background process (-f) console=yes|no ; load the Asterisk console (-c) highpriority=yes|no ; run with high priority (-p) initcrypto=yes|no ; initialize crypto at start (-i) nocolor=yes|no ; disable ANSI colors on the console (-n) dumpcore=yes|no ; dump a core file on failure (-g) quiet=yes|no ; run quietly (-q) cache_record_files=yes|no ; cache files recorded with Record() ...Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access