asterisk.sgml 11 KB

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