D.7. 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/asterisk
Additionally, 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( ) in an alternative
; directory in conjunction with record_cache_dir
record_cache_dir=<dir> ; directory in which to cache files recorded with
; Record ( ) until completion
execincludes=yes|no ; enable support of #exec includes in configuration
; files (off by default)
|