asterisk.sgml 10 KB

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