1 \subsubsection{Asterisk Main Configuration File
}
3 Below is a sample of the main Asterisk configuration file,
4 asterisk.conf. Note that this file is not provided in
5 sample form, because the Makefile creates it when needed
6 and does not touch it when it already exists.
11 ; Make sure these directories have the right permissions if not
12 ; running Asterisk as root
14 ; Where the configuration files (except for this one) are located
15 astetcdir => /etc/asterisk
17 ; Where the Asterisk loadable modules are located
18 astmoddir => /usr/lib/asterisk/modules
20 ; Where additional 'library' elements (scripts, etc.) are located
21 astvarlibdir => /var/lib/asterisk
23 ; Where AGI scripts/programs are located
24 astagidir => /var/lib/asterisk/agi-bin
26 ; Where spool directories are located
27 ; Voicemail, monitor, dictation and other apps will create files here
28 ; and outgoing call files (used with pbx_spool) must be placed here
29 astspooldir => /var/spool/asterisk
31 ; Where the Asterisk process ID (pid) file should be created
32 astrundir => /var/run/asterisk
34 ; Where the Asterisk log files should be created
35 astlogdir => /var/log/asterisk
39 ;Under "options" you can enter configuration options
40 ;that you also can set with command line options
42 ; Verbosity level for logging (-v)
45 ; Debug: "No" or value (
1-
4)
48 ; Background execution disabled (-f)
51 ; Always background, even with -v or -d (-F)
57 ; Execute with high priority (-p)
58 highpriority = yes | no
60 ; Initialize crypto at startup (-i)
63 ; Disable ANSI colors (-n)
66 ; Dump core on failure (-g)
72 ; Force timestamping in CLI verbose output (-T)
75 ; User to run asterisk as (-U) NOTE: will require changes to
76 ; directory and device permissions
79 ; Group to run asterisk as (-G)
82 ; Enable internal timing support (-I)
83 internal_timing = yes | no
85 ; These options have no command line equivalent
87 ; Cache record() files in another directory until completion
88 cache_record_files = yes | no
89 record_cache_dir = <dir>
91 ; Build transcode paths via SLINEAR
92 transcode_via_sln = yes | no
94 ; send SLINEAR silence while channel is being recorded
95 transmit_silence_during_record = yes | no
97 ; The maximum load average we accept calls for
100 ; The maximum number of concurrent calls you want to allow
103 ; Stop accepting calls when free memory falls below this amount specified in MB
106 ; Allow #exec entries in configuration files
107 execincludes = yes | no
109 ; Don't over-inform the Asterisk sysadm, he's a guru
112 ; System name. Used to prefix CDR uniqueid and to fill \$
{SYSTEMNAME
}
113 systemname = <a_string>
115 ; Should language code be last component of sound file name or first?
116 ; when off, sound files are searched as <path>/<lang>/<file>
117 ; when on, sound files are search as <lang>/<path>/<file>
118 ; (only affects relative paths for sound files)
119 languageprefix = yes | no
121 ; Locking mode for voicemail
122 ; - lockfile: default, for normal use
123 ; - flock: for where the lockfile locking method doesn't work
124 ; eh. on SMB/CIFS mounts
125 lockmode = lockfile | flock
127 ; Entity ID. This is in the form of a MAC address. It should be universally
128 ; unique. It must be unique between servers communicating with a protocol
129 ; that uses this value. The only thing that uses this currently is DUNDi,
130 ; but other things will use it in the future.
131 ; entityid=
00:
11:
22:
33:
44:
55
134 ; Changing the following lines may compromise your security
135 ; Asterisk.ctl is the pipe that is used to connect the remote CLI
136 ; (asterisk -r) to Asterisk. Changing these settings change the
137 ; permissions and ownership of this file.
138 ; The file is created when Asterisk starts, in the "astrundir" above.
140 ;astctlpermissions =
0660
142 ;astctlgroup = asterisk
143 ;astctl = asterisk.ctl