Search:
     
3CX Phone System for Windows Download the Free Edition

Asterisk config asterisk.conf

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
 lockmode = lockfile | flock ; NOTE: This option was added in version1.6



astdatadir for example determines where asterisk looks for the sound files. If you set astdatadir to /usr/local/share/asterisk asterisk will look for files /usr/local/share/asterisk/sounds/test.* when you execute Playback(test).
Created by: oej,Last modification on Tue 18 of Aug, 2009 [11:08 UTC] by skrusty


Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

 





Search: