~singpolyma/asterisk

asterisk/doc/asterisk.8 -rw-r--r-- 9.1 KiB
51af79b4Christopher Vollick Content Created By Initiator 2: Electric Boogaloo 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
'\" -*- coding: us-ascii -*-
.if \n(.g .ds T< \\FC
.if \n(.g .ds T> \\F[\n[.fam]]
.de URL
\\$2 \(la\\$1\(ra\\$3
..
.if \n(.g .mso www.tmac
.TH "asterisk " 8 2011-02-08 "asterisk Trunk" ""
.SH NAME
asterisk
\- All-purpose telephony server.
.SH SYNOPSIS
'nh
.fi
.ad l
\fBasterisk\fR \kx
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
'in \n(.iu+\nxu
[\fB\-BcdfFghiImnpqRtTvVW\fR] [\fB\-C \fR\fIfile\fR] [\fB\-e \fR\fImemory\fR] [\fB\-G \fR\fIgroup\fR] [\fB\-L \fR\fIloadaverage\fR] [\fB\-M \fR\fIvalue\fR] [\fB\-U \fR\fIuser\fR] [\fB\-s \fR\fIsocket\-file\fR]
'in \n(.iu\-\nxu
.ad b
'hy
'nh
.fi
.ad l
\fBasterisk \-r\fR \kx
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
'in \n(.iu+\nxu
[\fB\-v\fR] [\fB\-d\fR] [\fB\-x \fR\fIcommand\fR]
'in \n(.iu-\nxu
.ad b
'hy
'nh
.fi
.ad l
\fBasterisk \-R\fR \kx
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
'in \n(.iu+\nxu
[\fB\-v\fR] [\fB\-d\fR] [\fB\-x \fR\fIcommand\fR]
'in \n(.iu-\nxu
.ad b
'hy
.SH DESCRIPTION
\fBasterisk\fR is a full-featured telephony server which
provides Private Branch eXchange (PBX), Interactive Voice Response (IVR),
Automated Call Distribution (ACD), Voice over IP (VoIP) gatewaying,
Conferencing, and a plethora of other telephony applications to a broad
range of telephony devices including packet voice (SIP, IAX2, MGCP, Skinny,
H.323, Unistim) devices (both endpoints and proxies), as well as traditional TDM
hardware including T1, E1, ISDN PRI, GR-303, RBS, Loopstart, Groundstart,
ISDN BRI and many more.
.PP
At start, Asterisk reads the /etc/asterisk/asterisk.conf main configuration
file and locates the rest of the configuration files from the configuration
in that file. The \-C option specifies an alternate main configuration file.
Virtually all aspects of the operation of asterisk's configuration files
can be found in the sample configuration files. The format for those files
is generally beyond the scope of this man page.
.PP
When running with \fB\-c\fR, \fB\-r\fR or \fB\-R\fR
options, Asterisk supplies a powerful command line, including command
completion, which may be used to monitors its status, perform a variety
of administrative actions and even explore the applications that are
currently loaded into the system.
.PP
Asterisk is a trademark of Digium, Inc.
.SH OPTIONS
Running Asterisk starts the asterisk daemon (optionally running it
in the foreground). However running it with \*(T<\fB\-r\fR\*(T> or
\*(T<\fB\-R\fR\*(T> connects to an existing Asterisk instance through
a remote console.
.TP
\-B
Force the background of the terminal to be black, in order for
terminal colors to show up properly. Equivalent to
\*(T<\fBforceblackbackground = yes\fR\*(T> in
\*(T<\fIasterisk.conf\fR\*(T>. See also
\*(T<\fB\-n\fR\*(T> and \*(T<\fB\-W\fR\*(T>.
.TP
\-C \fIfile\fR
Use \*(T<\fIfile\fR\*(T> as master configuration file
instead of the default, /etc/asterisk/asterisk.conf
.TP
\-c
Provide a control console on the calling terminal. The
console is similar to the remote console provided by
\*(T<\fB\-r\fR\*(T>. Specifying this option implies
\fB\-f\fR and will cause asterisk to no longer
fork or detach from the controlling terminal. Equivalent
to \*(T<\fBconsole = yes\fR\*(T> in \*(T<\fIasterisk.conf\fR\*(T>.
.TP
\-d
Enable extra debugging statements. This parameter may be used several
times, and each increases the debug level. Equivalent to \*(T<\fBdebug = \fR\*(T>\fInum\fR
in \*(T<\fIasterisk.conf\fR\*(T> to explicitly set the initian debug
level to \fInum\fR. When given at startup, this
option also implies \*(T<\fB\-f\fR\*(T> (no forking). However when
connecting to an existing Asterisk instance (\*(T<\fB\-r\fR\*(T> or
\*(T<\fB\-R\fR\*(T>), it may only increase the debug level.
.TP
\-e \fImemory\fR
Limit the generation of new channels when the amount of free memory
has decreased to under \fImemory\fR megabytes.
Equivalent to \*(T<\fBminmemfree = \fR\*(T>\fImemory\fR in
\*(T<\fIasterisk.conf\fR\*(T>.
.TP
\-f
Do not fork or detach from controlling terminal. Overrides any
preceding specification of \fB\-F\fR on the command line.
Equivalent to \*(T<\fBnofork = yes\fR\*(T> in \*(T<\fIasterisk.conf\fR\*(T>.
See also \*(T<\fB\-c\fR\*(T>.
.TP
\-F
Always fork and detach from controlling terminal. Overrides any
preceding specification of \fB\-f\fR on the command line.
May also be used to prevent \*(T<\fB\-d\fR\*(T> and \*(T<\fB\-v\fR\*(T> to imply
no forking. Equivalent to \*(T<\fBalwaysfork = yes\fR\*(T> in \*(T<\fIasterisk.conf\fR\*(T>.
.TP
\-g
Remove resource limit on core size, thus forcing Asterisk to dump
core in the unlikely event of a segmentation fault or abort signal.
\fBNOTE:\fR in some cases this may be incompatible
with the \fB\-U\fR or \fB\-G\fR flags.
.TP
\-G \fIgroup\fR
Run as group \fIgroup\fR instead of the
calling group. \fBNOTE:\fR this requires substantial work
to be sure that Asterisk's environment has permission to write
the files required for its operation, including logs, its comm
socket, the asterisk database, etc.
.TP
\-h
Provide brief summary of command line arguments and terminate.
.TP
\-i
Prompt user to intialize any encrypted private keys for IAX2
secure authentication during startup.
.TP
\-I
Enable internal timing if DAHDI timing is available.
The default behaviour is that outbound packets are phase locked
to inbound packets. Enabling this switch causes them to be
locked to the internal DAHDI timer instead.
.TP
\-L \fIloadaverage\fR
Limits the maximum load average before rejecting new calls. This can
be useful to prevent a system from being brought down by terminating
too many simultaneous calls.
.TP
\-m
Temporarily mutes output to the console and logs. To return to normal,
use \fBlogger mute\fR.
.TP
\-M \fIvalue\fR
Limits the maximum number of calls to the specified value. This can
be useful to prevent a system from being brought down by terminating
too many simultaneous calls.
.TP
\-n
Disable ANSI colors even on terminals capable of displaying them.
.TP
\-p
If supported by the operating system (and executing as root),
attempt to run with realtime priority for increased performance and
responsiveness within the Asterisk process, at the expense of other
programs running on the same machine.

Note: \fBastcanary\fR will run concurrently with
\fBasterisk\fR. If \fBastcanary\fR stops
running or is killed, \fBasterisk\fR will slow down to
normal process priority, to avoid locking up the machine.
.TP
\-q
Reduce default console output when running in conjunction with
console mode (\fB\-c\fR).
.TP
\-r
Instead of running a new Asterisk process, attempt to connect
to a running Asterisk process and provide a console interface
for controlling it.
.TP
\-R
Much like \fB\-r\fR. Instead of running a new Asterisk process, attempt to connect
to a running Asterisk process and provide a console interface
for controlling it. Additionally, if connection to the Asterisk
process is lost, attempt to reconnect for as long as 30 seconds.
.TP
\-s \fIsocket file name\fR
In combination with \fB\-r\fR, connect directly to a specified
Asterisk server socket.
.TP
\-t
When recording files, write them first into a temporary holding directory,
then move them into the final location when done.
.TP
\-T
Add timestamp to all non-command related output going to the console
when running with verbose and/or logging to the console.
.TP
\-U \fIuser\fR
Run as user \fIuser\fR instead of the
calling user. \fBNOTE:\fR this requires substantial work
to be sure that Asterisk's environment has permission to write
the files required for its operation, including logs, its comm
socket, the asterisk database, etc.
.TP
\-v
Increase the level of verboseness on the console. The more times
\fB\-v\fR is specified, the more verbose the output is.
Specifying this option implies \fB\-f\fR and will cause
asterisk to no longer fork or detach from the controlling terminal.
This option may also be used in conjunction with \fB\-r\fR
and \fB\-R\fR.

Note: This always sets the verbose level in the asterisk process,
even if it is running in the background. This will affect the size
of your log files.
.TP
\-V
Display version information and exit immediately.
.TP
\-W
Display colored terminal text as if the background were white
or otherwise light in color. Normally, terminal text is displayed
as if the background were black or otherwise dark in color.
.TP
\-x \fIcommand\fR
Connect to a running Asterisk process and execute a command on
a command line, passing any output through to standard out and
then terminating when the command execution completes. Implies
\fB\-r\fR when \fB\-R\fR is not explicitly
supplied.
.TP
\-X
Enables executing of includes via \fB#exec\fR directive inside
\*(T<\fIasterisk.conf\fR\*(T>.
.SH EXAMPLES
\fBasterisk\fR - Begin Asterisk as a daemon
.PP
\fBasterisk \-vvvgc\fR - Run on controlling terminal
.PP
\fBasterisk \-rx "core show channels"\fR - Display channels on running server
.SH BUGS
Bug reports and feature requests may be filed at https://issues.asterisk.org
.SH "SEE ALSO"
https://www.asterisk.org - The Asterisk Home Page
.PP
http://www.asteriskdocs.org - The Asterisk Documentation Project
.PP
https://wiki.asterisk.org - The Asterisk Wiki
.PP
https://www.digium.com/ - Asterisk is sponsored by Digium
.SH AUTHOR
Mark Spencer <markster@digium.com>
.PP
Countless other contributors, see CREDITS with distribution for more information.