revert an optimization that broke ABI... thanks russell!
[asterisk-bristuff.git] / doc / asterisk.8
blob9e0e6880fad61a1f873b7acafefed58a1978e7f7
1 .\" This manpage has been automatically generated by docbook2man 
2 .\" from a DocBook document.  This tool can be found at:
3 .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
4 .\" Please send any bug reports, improvements, comments, patches, 
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH "ASTERISK" "8" "25 October 2005" "asterisk 1.2" ""
8 .SH NAME
9 asterisk \- All-purpose telephony server.
10 .SH SYNOPSIS
12 \fBasterisk\fR [ \fB-tThfdvVqpRgciIn\fR ] [ \fB-C \fIfile\fB\fR ] [ \fB-U \fIuser\fB\fR ] [ \fB-G \fIgroup\fB\fR ] [ \fB-x \fIcommand\fB\fR ] [ \fB-M \fIvalue\fB\fR ]
15 \fBasterisk -r\fR [ \fB-v\fR ] [ \fB-x \fIcommand\fB\fR ]
17 .SH "DESCRIPTION"
18 .PP
19 \fBasterisk\fR is a full-featured telephony server which
20 provides Private Branch eXchange (PBX), Interactive Voice Response (IVR),
21 Automated Call Distribution (ACD), Voice over IP (VoIP) gatewaying, 
22 Conferencing, and a plethora of other telephony applications to a broad
23 range of telephony devices including packet voice (SIP, IAX2, MGCP, Skinny,
24 H.323) devices (both endpoints and proxies), as well as traditional TDM
25 hardware including T1, E1, ISDN PRI, GR-303, RBS, Loopstart, Groundstart,
26 ISDN BRI, and many more.
27 .PP
28 At start, Asterisk reads the /etc/asterisk/asterisk.conf main configuration
29 file and locates the rest of the configuration files from the configuration
30 in that file. The -C option specifies an alternate main configuration file.
31 Virtually all aspects of the operation of asterisk's configuration files
32 can be found in the sample configuration files.  The format for those files
33 is generally beyond the scope of this man page.
34 .PP
35 When running with \fB-c\fR, \fB-r\fR or \fB-R\fR
36 options, Asterisk supplies a powerful command line, including command
37 completion, which may be used to monitors its status, perform a variety
38 of administrative actions and even explore the applications that are
39 currently loaded into the system.
40 .PP
41 Asterisk is a trademark of Digium, Inc.
42 .SH "OPTIONS"
43 .TP
44 \fB-C \fIfile\fB\fR
45 Use \fIfile\fR as master configuration file
46 instead of the default, /etc/asterisk/asterisk.conf
47 .TP
48 \fB-c\fR
49 Provide a control console on the calling terminal.
50 Specifying this option implies \fB-f\fR and will cause
51 asterisk to no longer fork or detach from the controlling terminal.
52 .TP
53 \fB-d\fR
54 Enable extra debugging statements.
56 Note: This always sets the debug level in the asterisk process,
57 even if it is running in the background. This will affect the size
58 of your log files.
59 .TP
60 \fB-f\fR
61 Do not fork or detach from controlling terminal.
62 .TP
63 \fB-g\fR
64 Remove resource limit on core size, thus forcing Asterisk to dump
65 core in the unlikely event of a segmentation fault or abort signal.
66 \fBNOTE:\fR in some cases this may be incompatible
67 with the \fB-U\fR or \fB-G\fR flags.
68 .TP
69 \fB-G \fIgroup\fB\fR
70 Run as group \fIgroup\fR instead of the
71 calling group.  \fBNOTE:\fR this requires substantial work
72 to be sure that Asterisk's environment has permission to write
73 the files required for its operation, including logs, its comm
74 socket, the asterisk database, etc.
75 .TP
76 \fB-h\fR
77 Provide brief summary of command line arguments and terminate.
78 .TP
79 \fB-i\fR
80 Prompt user to initialize any encrypted private keys for IAX2
81 secure authentication during startup.
82 .TP
83 \fB-L \fIloadaverage\fB\fR
84 Limits the maximum load average before rejecting new calls.  This can
85 be useful to prevent a system from being brought down by terminating
86 too many simultaneous calls.
87 .TP
88 \fB-m\fR
89 Disable log and verbose output to remote (-r) consoles.
90 .TP
91 \fB-M \fIvalue\fB\fR
92 Limits the maximum number of calls to the specified value.  This can
93 be useful to prevent a system from being brought down by terminating
94 too many simultaneous calls.
95 .TP
96 \fB-n\fR
97 Disable ANSI colors even on terminals capable of displaying them.
98 .TP
99 \fB-p\fR
100 If supported by the operating system (and executing as root),
101 attempt to run with realtime priority for increased performance and
102 responsiveness within the Asterisk process, at the expense of other
103 programs running on the same machine.
105 \fB-q\fR
106 Reduce default console output when running in conjunction with
107 console mode (\fB-c\fR).
109 \fB-r\fR
110 Instead of running a new Asterisk process, attempt to connect
111 to a running Asterisk process and provide a console interface
112 for controlling it.
114 \fB-R\fR
115 Much like \fB-r\fR\&.  Instead of running a new Asterisk process, attempt to connect
116 to a running Asterisk process and provide a console interface
117 for controlling it. Additionally, if connection to the Asterisk 
118 process is lost, attempt to reconnect for as long as 30 seconds.
120 \fB-I\fR
121 Enable internal timing if Zaptel timer is available
122 The default behaviour is that outbound packets are phase locked
123 to inbound packets. Enabling this switch causes them to be
124 locked to the internal Zaptel timer instead.
126 \fB-t\fR
127 When recording files, write them first into a temporary holding directory, 
128 then move them into the final location when done.
130 \fB-T\fR
131 Add timestamp to all non-command related output going to the console
132 when running with verbose and/or logging to the console.
134 \fB-U \fIuser\fB\fR
135 Run as user \fIuser\fR instead of the
136 calling user.  \fBNOTE:\fR this requires substantial work
137 to be sure that Asterisk's environment has permission to write
138 the files required for its operation, including logs, its comm
139 socket, the asterisk database, etc.
141 \fB-v\fR
142 Increase the level of verboseness on the console.  The more times
143 \fB-v\fR is specified, the more verbose the output is.
144 Specifying this option implies \fB-f\fR and will cause
145 asterisk to no longer fork or detach from the controlling terminal.
146 This option may also be used in conjunction with \fB-r\fR
147 and \fB-R\fR\&.
149 Note: This always sets the verbose level in the asterisk process,
150 even if it is running in the background. This will affect the size
151 of your log files.
153 \fB-V\fR
154 Display version information and exit immediately.
156 \fB-x \fIcommand\fB\fR
157 Connect to a running Asterisk process and execute a command on
158 a command line, passing any output through to standard out and
159 then terminating when the command execution completes.  Implies
160 \fB-r\fR when \fB-R\fR is not explicitly
161 supplied.
162 .SH "EXAMPLES"
164 \fBasterisk\fR - Begin Asterisk as a daemon
166 \fBasterisk -vvvgc\fR - Run on controlling terminal
168 \fBasterisk -rx "core show channels"\fR - Display channels on running server
169 .SH "BUGS"
171 Bug reports and feature requests may be filed at http://bugs.digium.com
172 .SH "SEE ALSO"
174 *CLI> \fBhelp\fR - Help on Asterisk CLI
176 *CLI> \fBcore show applications\fR - Show loaded dialplan applications
178 *CLI> \fBcore show functions\fR - Show loaded dialplan functions
180 *CLI> \fBdialplan show\fR - Show current dialplan
182 http://www.asterisk.org - The Asterisk Home Page
184 http://www.asteriskdocs.org - The Asterisk Documentation Project
186 http://www.voip-info.org/wiki-Asterisk - The Asterisk Wiki
188 http://www.digium.com/ - Asterisk sponsor and hardware supplier
190 http://www.markocam.com/ - Asterisk author's web cam
191 .SH "AUTHOR"
193 Mark Spencer <markster@digium.com>
195 Countless other contributors, see CREDITS with distribution for more information