O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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() ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required