1 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook V4.1//EN">
4 <date>2005-
10-
18</date>
8 <application>asterisk
</application>
10 <manvolnum>8</manvolnum>
11 <refmiscinfo>asterisk
1.2</refmiscinfo>
15 <application>asterisk
</application>
18 All-purpose telephony server.
23 <command>asterisk
</command>
24 <arg><option>-tThfdvVqpRgciIn
</option></arg>
25 <arg><option>-C
</option><replaceable class=
"parameter">file
</replaceable></arg>
26 <arg><option>-U
</option><replaceable class=
"parameter">user
</replaceable></arg>
27 <arg><option>-G
</option><replaceable class=
"parameter">group
</replaceable></arg>
28 <arg><option>-x
</option><replaceable class=
"parameter">command
</replaceable></arg>
29 <arg><option>-M
</option><replaceable class=
"parameter">value
</replaceable></arg>
30 <arg><option>-L
</option><replaceable class=
"parameter">loadaverage
</replaceable></arg>
34 <command>asterisk -r
</command>
35 <arg><option>-v
</option></arg>
36 <arg><option>-x
</option><replaceable class=
"parameter">command
</replaceable></arg>
41 <date>2006-
03-
29</date>
43 <title>DESCRIPTION
</title>
45 <command>asterisk
</command> is a full-featured telephony server which
46 provides Private Branch eXchange (PBX), Interactive Voice Response (IVR),
47 Automated Call Distribution (ACD), Voice over IP (VoIP) gatewaying,
48 Conferencing, and a plethora of other telephony applications to a broad
49 range of telephony devices including packet voice (SIP, IAX2, MGCP, Skinny,
50 H
.323) devices (both endpoints and proxies), as well as traditional TDM
51 hardware including T1, E1, ISDN PRI, GR-
303, RBS, Loopstart, Groundstart,
52 ISDN BRI, and many more.
55 At start, Asterisk reads the /etc/asterisk/asterisk.conf main configuration
56 file and locates the rest of the configuration files from the configuration
57 in that file. The -C option specifies an alternate main configuration file.
58 Virtually all aspects of the operation of asterisk's configuration files
59 can be found in the sample configuration files. The format for those files
60 is generally beyond the scope of this man page.
63 When running with
<command>-c
</command>,
<command>-r
</command> or
<command>-R
</command>
64 options, Asterisk supplies a powerful command line, including command
65 completion, which may be used to monitors its status, perform a variety
66 of administrative actions and even explore the applications that are
67 currently loaded into the system.
70 Asterisk is a trademark of Digium, Inc.
74 <title>OPTIONS
</title>
77 <term>-C
<replaceable class=
"parameter">file
</replaceable></term>
80 Use
<filename>file
</filename> as master configuration file
81 instead of the default, /etc/asterisk/asterisk.conf
89 Provide a control console on the calling terminal.
90 Specifying this option implies
<command>-f
</command> and will cause
91 asterisk to no longer fork or detach from the controlling terminal.
99 Enable extra debugging statements.
102 Note: This always sets the debug level in the asterisk process,
103 even if it is running in the background. This will affect the size
112 Do not fork or detach from controlling terminal.
120 Remove resource limit on core size, thus forcing Asterisk to dump
121 core in the unlikely event of a segmentation fault or abort signal.
122 <command>NOTE:
</command> in some cases this may be incompatible
123 with the
<command>-U
</command> or
<command>-G
</command> flags.
128 <term>-G
<replaceable class=
"parameter">group
</replaceable></term>
131 Run as group
<replaceable>group
</replaceable> instead of the
132 calling group.
<command>NOTE:
</command> this requires substantial work
133 to be sure that Asterisk's environment has permission to write
134 the files required for its operation, including logs, its comm
135 socket, the asterisk database, etc.
143 Provide brief summary of command line arguments and terminate.
151 Prompt user to intialize any encrypted private keys for IAX2
152 secure authentication during startup.
160 Enable internal timing if Zaptel timing is available.
161 The default behaviour is that outbound packets are phase locked
162 to inbound packets. Enabling this switch causes them to be
163 locked to the internal Zaptel timer instead.
168 <term>-L
<replaceable class=
"parameter">loadaverage
</replaceable></term>
171 Limits the maximum load average before rejecting new calls. This can
172 be useful to prevent a system from being brought down by terminating
173 too many simultaneous calls.
178 <term>-M
<replaceable class=
"parameter">value
</replaceable></term>
181 Limits the maximum number of calls to the specified value. This can
182 be useful to prevent a system from being brought down by terminating
183 too many simultaneous calls.
191 Disable ANSI colors even on terminals capable of displaying them.
199 If supported by the operating system (and executing as root),
200 attempt to run with realtime priority for increased performance and
201 responsiveness within the Asterisk process, at the expense of other
202 programs running on the same machine.
210 Reduce default console output when running in conjunction with
211 console mode (
<command>-c
</command>).
219 Instead of running a new Asterisk process, attempt to connect
220 to a running Asterisk process and provide a console interface
229 Much like
<command>-r
</command>. Instead of running a new Asterisk process, attempt to connect
230 to a running Asterisk process and provide a console interface
231 for controlling it. Additionally, if connection to the Asterisk
232 process is lost, attempt to reconnect for as long as
30 seconds.
240 When recording files, write them first into a temporary holding directory,
241 then move them into the final location when done.
249 Add timestamp to all non-command related output going to the console
250 when running with verbose and/or logging to the console.
255 <term>-U
<replaceable class=
"parameter">user
</replaceable></term>
258 Run as user
<replaceable>user
</replaceable> instead of the
259 calling user.
<command>NOTE:
</command> this requires substantial work
260 to be sure that Asterisk's environment has permission to write
261 the files required for its operation, including logs, its comm
262 socket, the asterisk database, etc.
270 Increase the level of verboseness on the console. The more times
271 <command>-v
</command> is specified, the more verbose the output is.
272 Specifying this option implies
<command>-f
</command> and will cause
273 asterisk to no longer fork or detach from the controlling terminal.
274 This option may also be used in conjunction with
<command>-r
</command>
275 and
<command>-R
</command>.
278 Note: This always sets the verbose level in the asterisk process,
279 even if it is running in the background. This will affect the size
288 Display version information and exit immediately.
293 <term>-x
<replaceable class=
"parameter">command
</replaceable></term>
296 Connect to a running Asterisk process and execute a command on
297 a command line, passing any output through to standard out and
298 then terminating when the command execution completes. Implies
299 <command>-r
</command> when
<command>-R
</command> is not explicitly
307 <title>EXAMPLES
</title>
309 <command>asterisk
</command> - Begin Asterisk as a daemon
312 <command>asterisk -vvvgc
</command> - Run on controlling terminal
315 <command>asterisk -rx
"show channels"</command> - Display channels on running server
321 Bug reports and feature requests may be filed at http://bugs.digium.com
325 <title>SEE ALSO
</title>
327 *CLI
> <command>help
</command> - Help on Asterisk CLI
330 *CLI
> <command>show applications
</command> - Show loaded dialplan applications
333 *CLI
> <command>show functions
</command> - Show loaded dialplan functions
336 http://www.asterisk.org - The Asterisk Home Page
339 http://www.asteriskdocs.org - The Asterisk Documentation Project
342 http://www.voip-info.org/wiki-Asterisk - The Asterisk Wiki
345 http://www.digium.com/ - Asterisk sponsor and hardware supplier
348 http://www.markocam.com/ - Asterisk author's web cam
352 <title>AUTHOR
</title>
355 <firstname>Mark Spencer
<markster@digium.com
></firstname>
360 <firstname>Countless other contributers, see CREDITS with distribution for more information
</firstname>