asterisk.sgml 8.6 KB

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