asterisk.8 6.7 KB

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