login | register
Tue 02 of Dec, 2008 [12:03 UTC]

voip-info.org

History

Asterisk config asterisk.conf

Created by: oej,Last modification on Wed 01 of Oct, 2008 [02:21 UTC] by deux
In asterisk.conf you specify:

  • location, permissions and ownership for the socket used to connect from a remote console
  • locations for various directories used by Asterisk to store configuration files, log files, library files and scripts
  • default command line options

NOTE: Due to a bug in asterisk.c (bug report #6609), options specified in asterisk.conf will override any command line options specified when invoking asterisk. If you do not wish this behaviour, do not specify the respective option in asterisk.conf.

NOTE: The default asterisk.conf is broken in Ubuntu (Hardy) and Debian (Lenny), as it lists the directories in the global section, as opposed to the directories section.

Sample config


 [files]
 astctlpermissions => 700
 astctlowner => asterisk
 astctlgroup => asterisk
 astctl => /var/run/asterisk.ctl

 [directories]
 astetcdir => /etc/asterisk
 astspooldir => /var/spool/asterisk 
 astvarlibdir => /var/lib/asterisk
 astdatadir => /var/lib/asterisk
 astlogdir => /var/log/asterisk
 astagidir => /var/lib/asterisk/agi-bin
 astrundir => /var/run
 astmoddir => /usr/lib/asterisk/modules

 [options]
 verbose => 3       ; NOTE: this option prevents Asterisk forking on startup
 alwaysfork => yes  ; This will force a fork on startup if verbose is set 
 timestamp => yes
 execincludes => yes
 optiondebug => no
 nofork => no
 quiet => no
 console => no
 highpriority => no
 initcrypto => no
 nocolor = yes
 dontwarn = no
 dumpcore => yes
 cache_record_files => yes
 record_cache_dir => /private/tmp
 transcode_via_sln => yes
 transmit_silence_during_record = yes
 maxcalls => 0
 maxload => 0.0
 runuser => asterisk
 rungroup => asterisk
 systemname => foobar




Comments

Comments Filter
222

333alwaysfork doesn't seem to work

by tillo, Friday 03 of November, 2006 [22:20:41 UTC]
Verbose switches will everytime keep asterisk from forking at least in version 1.2.12.1.
Please follow bug report I wrote at http://bugs.digium.com/view.php?id=8288