Section D.7. asterisk.conf

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=yesno   <val>   ; turn debugging on or off (or value in 1.2) (-d)     nofork=yesno             ; don't fork a background process (-f)     console=yesno            ; load the Asterisk console (-c)     highpriority=yesno       ; run with high priority (-p)     initcrypto=yesno         ; initialize crypto at start (-i)     nocolor=yesno            ; disable ANSI colors on the console (-n)     dumpcore=yesno           ; dump a core file on failure (-g)     quiet=yesno              ; run quietly (-q)     cache_record_files=yesno ; 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=yesno       ; enable support of #exec includes in configuration                               ; files (off by default) 



Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
ISBN: B0026OR3OO
EAN: N/A
Year: 2001
Pages: 380

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net