c29b4af3049d8f13a7bdf19d7f887384a0b33186
[asterisk/asterisk.git] / asterisk.sgml
1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
2 <refentry>
3 <refentryinfo>
4         <date>2005-10-18</date>
5 </refentryinfo>
6 <refmeta>
7         <refentrytitle>
8                 <application>asterisk</application>
9         </refentrytitle>
10         <manvolnum>8</manvolnum>
11         <refmiscinfo>asterisk 1.2</refmiscinfo>
12 </refmeta>
13 <refnamediv>
14         <refname>
15                 <application>asterisk</application>
16         </refname>
17         <refpurpose>
18         All-purpose telephony server.
19         </refpurpose>
20 </refnamediv>
21 <refsynopsisdiv>
22         <cmdsynopsis>
23         <command>asterisk</command>
24 <arg><option>-tThfdvVqpRgcin</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         </cmdsynopsis>
31         <cmdsynopsis>
32
33         <command>asterisk -r</command>
34         <arg><option>-v</option></arg>
35 <arg><option>-x </option><replaceable class="parameter">command</replaceable></arg>
36         </cmdsynopsis>
37 </refsynopsisdiv>
38 <refsect1>
39         <refsect1info>
40                 <date>2004-07-01</date>
41         </refsect1info>
42         <title>DESCRIPTION</title>
43         <para>
44         <command>asterisk</command> is a full-featured telephony server which
45         provides Private Branch eXchange (PBX), Interactive Voice Response (IVR),
46         Automated Call Distribution (ACD), Voice over IP (VoIP) gatewaying, 
47         Conferencing, and a plethora of other telephony applications to a broad
48         range of telephony devices including packet voice (SIP, IAX2, MGCP, Skinny,
49         H.323) devices (both endpoints and proxies), as well as traditional TDM
50         hardware including T1, E1, ISDN PRI, GR-303, RBS, Loopstart, Groundstart,
51         ISDN BRI, and many more.
52         </para>
53         <para>
54         At start, Asterisk reads the /etc/asterisk/asterisk.conf main configuration
55         file and locates the rest of the configuration files from the configuration
56         in that file. The -C option specifies an alternate main configuration file.
57         Virtually all aspects of the operation of asterisk's configuration files
58         can be found in the sample configuration files.  The format for those files
59         is generally beyond the scope of this man page.
60         </para>
61         <para>
62         When running with <command>-c</command>, <command>-r</command> or <command>-R</command>
63         options, Asterisk supplies a powerful command line, including command
64         completion, which may be used to monitors its status, perform a variety
65         of administrative actions and even explore the applications that are
66         currently loaded into the system.
67         </para>
68         <para>
69         Asterisk is a trademark of Digium, Inc.
70         </para>
71 </refsect1>
72 <refsect1>
73         <title>OPTIONS</title>
74         <variablelist>
75         <varlistentry>
76                 <term>-C <replaceable class="parameter">file</replaceable></term>
77                 <listitem>
78                         <para>
79                         Use <filename>file</filename> as master configuration file
80                         instead of the default, /etc/asterisk/asterisk.conf
81                         </para>
82                 </listitem>
83         </varlistentry>
84         <varlistentry>
85                 <term>-c</term>
86                 <listitem>
87                         <para>
88                         Provide a control console on the calling terminal.
89                         Specifying this option implies <command>-f</command> and will cause
90                         asterisk to no longer fork or detach from the controlling terminal.
91                         </para>
92                 </listitem>
93         </varlistentry>
94         <varlistentry>
95                 <term>-d</term>
96                 <listitem>
97                         <para>
98                         Enable extra debugging statements.
99                         </para>
100                         <para>
101                         Note: This always sets the debug level in the asterisk process,
102                         even if it is running in the background. This will affect the size
103                         of your log files.
104                         </para>
105                 </listitem>
106         </varlistentry>
107         <varlistentry>
108                 <term>-f</term>
109                 <listitem>
110                         <para>
111                         Do not fork or detach from controlling terminal.
112                         </para>
113                 </listitem>
114         </varlistentry>
115         <varlistentry>
116                 <term>-g</term>
117                 <listitem>
118                         <para>
119                         Remove resource limit on core size, thus forcing Asterisk to dump
120                         core in the unlikely event of a segmentation fault or abort signal.
121                         <command>NOTE:</command> in some cases this may be incompatible
122                         with the <command>-U</command> or <command>-G</command> flags.
123                         </para>
124                 </listitem>
125         </varlistentry>
126         <varlistentry>
127                 <term>-G <replaceable class="parameter">group</replaceable></term>
128                 <listitem>
129                         <para>
130                         Run as group <replaceable>group</replaceable> instead of the
131                         calling group.  <command>NOTE:</command> this requires substantial work
132                         to be sure that Asterisk's environment has permission to write
133                         the files required for its operation, including logs, its comm
134                         socket, the asterisk database, etc.
135                         </para>
136                 </listitem>
137         </varlistentry>
138         <varlistentry>
139                 <term>-h</term>
140                 <listitem>
141                         <para>
142                         Provide brief summary of command line arguments and terminate.
143                         </para>
144                 </listitem>
145         </varlistentry>
146         <varlistentry>
147                 <term>-i</term>
148                 <listitem>
149                         <para>
150                         Prompt user to intialize any encrypted private keys for IAX2
151                         secure authentication during startup.
152                         </para>
153                 </listitem>
154         </varlistentry>
155         <varlistentry>
156                 <term>-M <replaceable class="parameter">value</replaceable></term>
157                 <listitem>
158                         <para>
159                         Limits the maximum number of calls to the specified value.  This can
160                         be useful to prevent a system from being brought down by terminating
161                         too many simultaneous calls.
162                         </para>
163                 </listitem>
164         </varlistentry>
165         <varlistentry>
166                 <term>-n</term>
167                 <listitem>
168                         <para>
169                         Disable ANSI colors even on terminals capable of displaying them.
170                         </para>
171                 </listitem>
172         </varlistentry>
173         <varlistentry>
174                 <term>-p</term>
175                 <listitem>
176                         <para>
177                         If supported by the operating system (and executing as root),
178                         attempt to run with realtime priority for increased performance and
179                         responsiveness within the Asterisk process, at the expense of other
180                         programs running on the same machine.
181                         </para>
182                 </listitem>
183         </varlistentry>
184         <varlistentry>
185                 <term>-q</term>
186                 <listitem>
187                         <para>
188                         Reduce default console output when running in conjunction with
189                         console mode (<command>-c</command>).
190                         </para>
191                 </listitem>
192         </varlistentry>
193         <varlistentry>
194                 <term>-r</term>
195                 <listitem>
196                         <para>
197                         Instead of running a new Asterisk process, attempt to connect
198                         to a running Asterisk process and provide a console interface
199                         for controlling it.
200                         </para>
201                 </listitem>
202         </varlistentry>
203         <varlistentry>
204                 <term>-R</term>
205                 <listitem>
206                         <para>
207                         Much like <command>-r</command>.  Instead of running a new Asterisk process, attempt to connect
208                         to a running Asterisk process and provide a console interface
209                         for controlling it. Additionally, if connection to the Asterisk 
210                         process is lost, attempt to reconnect for as long as 30 seconds.
211                         </para>
212                 </listitem>
213         </varlistentry>
214         <varlistentry>
215                 <term>-t</term>
216                 <listitem>
217                         <para>
218                         When recording files, write them first into a temporary holding directory, 
219                         then move them into the final location when done.
220                         </para>
221                 </listitem>
222         </varlistentry>
223         <varlistentry>
224                 <term>-T</term>
225                 <listitem>
226                         <para>
227                         Add timestamp to all non-command related output going to the console
228                         when running with verbose and/or logging to the console.
229                         </para>
230                 </listitem>
231         </varlistentry>
232         <varlistentry>
233                 <term>-U <replaceable class="parameter">user</replaceable></term>
234                 <listitem>
235                         <para>
236                         Run as user <replaceable>user</replaceable> instead of the
237                         calling user.  <command>NOTE:</command> this requires substantial work
238                         to be sure that Asterisk's environment has permission to write
239                         the files required for its operation, including logs, its comm
240                         socket, the asterisk database, etc.
241                         </para>
242                 </listitem>
243         </varlistentry>
244         <varlistentry>
245                 <term>-v</term>
246                 <listitem>
247                         <para>
248                         Increase the level of verboseness on the console.  The more times
249                         <command>-v</command> is specified, the more verbose the output is.
250                         Specifying this option implies <command>-f</command> and will cause
251                         asterisk to no longer fork or detach from the controlling terminal.
252                         This option may also be used in conjunction with <command>-r</command>
253                         and <command>-R</command>.
254                         </para>
255                         <para>
256                         Note: This always sets the verbose level in the asterisk process,
257                         even if it is running in the background. This will affect the size
258                         of your log files.
259                         </para>
260                 </listitem>
261         </varlistentry>
262         <varlistentry>
263                 <term>-V</term>
264                 <listitem>
265                         <para>
266                         Display version information and exit immediately.
267                         </para>
268                 </listitem>
269         </varlistentry>
270         <varlistentry>
271                 <term>-x <replaceable class="parameter">command</replaceable></term>
272                 <listitem>
273                         <para>
274                         Connect to a running Asterisk process and execute a command on
275                         a command line, passing any output through to standard out and
276                         then terminating when the command execution completes.  Implies
277                         <command>-r</command> when <command>-R</command> is not explicitly
278                         supplied.
279                         </para>
280                 </listitem>
281         </varlistentry>
282         </variablelist>
283 </refsect1>
284 <refsect1>
285         <title>EXAMPLES</title>
286         <para>
287         <command>asterisk</command> - Begin Asterisk as a daemon
288         </para>
289         <para>
290         <command>asterisk -vvvgc</command> - Run on controlling terminal
291         </para>
292         <para>
293         <command>asterisk -rx "show channels"</command> - Display channels on running server
294         </para>
295 </refsect1>
296 <refsect1>
297         <title>BUGS</title>
298         <para>
299         Bug reports and feature requests may be filed at http://bugs.digium.com
300         </para>
301 </refsect1>
302 <refsect1>
303         <title>SEE ALSO</title>
304         <para>
305         *CLI&gt; <command>help</command> - Help on Asterisk CLI
306         </para>
307         <para>
308         *CLI&gt; <command>show applications</command> - Show loaded dialplan applications
309         </para>
310         <para>
311         *CLI&gt; <command>show functions</command> - Show loaded dialplan functions
312         </para>
313         <para>
314         http://www.asterisk.org - The Asterisk Home Page
315         </para>
316         <para>
317         http://www.asteriskdocs.org - The Asterisk Documentation Project
318         </para>
319         <para>
320         http://www.voip-info.org/wiki-Asterisk - The Asterisk Wiki
321         </para>
322         <para>
323         http://www.digium.com/ - Asterisk sponsor and hardware supplier
324         </para>
325         <para>
326         http://www.markocam.com/ - Asterisk author's web cam
327         </para>
328 </refsect1>
329 <refsect1>
330         <title>AUTHOR</title>
331         <para>
332         <author>
333                 <firstname>Mark Spencer &lt;markster@digium.com&gt;</firstname> 
334         </author>
335         </para>
336         <para>
337         <author>
338                 <firstname>Countless other contributers, see CREDITS with distribution for more information</firstname> 
339         </author>
340         </para>
341 </refsect1>
342 </refentry>