kamailio.8 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. .\"
  2. .TH kamailio 8 03.02.2021 kamailio "Kamailio SIP Server"
  3. .\" Process with
  4. .\" groff -man -Tascii kamailio.8
  5. .\"
  6. .SH NAME
  7. kamailio \- a very fast and configurable SIP server
  8. .SH SYNOPSIS
  9. .B kamailio
  10. [
  11. .B \-hfcmMdVIhEebBlLnvKrRDTNWwtugPGSQOaAxXY
  12. ] [
  13. .BI \-a " auto\-aliases\-mode"
  14. ] [
  15. .BI \-A " pre\-processor\-define"
  16. ] [
  17. .BI \-b " max_rcv_buf_size"
  18. ] [
  19. .BI \-B " max_snd_buf_size"
  20. ] [
  21. .BI \-f " config\-file"
  22. ] [
  23. .BI \-g " gid"
  24. ] [
  25. .BI \-G " pgid\-file"
  26. ] [
  27. .BI \-l " address"
  28. ] [
  29. .BI \-L " modules\-dir"
  30. ] [
  31. .BI \-M " private_mem_size"
  32. ] [
  33. .BI \-m " shared_mem_size"
  34. ] [
  35. .BI \-n " processes\-no"
  36. ] [
  37. .BI \-N " tcp processes\-no"
  38. ] [
  39. .BI \-P " pid\-file"
  40. ] [
  41. .BI \-t " chroot\-dir"
  42. ] [
  43. .BI \-u " uid"
  44. ] [
  45. .BI \-w " working\-dir"
  46. ]
  47. .SH DESCRIPTION
  48. .B kamailio
  49. is a very fast and configurable SIP (RFC3261) server.
  50. .SH OPTIONS
  51. .TP 12
  52. .B
  53. .TP
  54. .BI \-a " auto\-aliases\-mode"
  55. Enable auto-aliases with 'yes' or 'on', disable with 'no' or 'off
  56. .TP
  57. .BI \-\-alias\fR=\fIval
  58. Add an alias, the value has to be '[proto:]hostname[:port]'
  59. (like for 'alias' global parameter)
  60. .TP
  61. .BI \-\-atexit\fR=\fIval
  62. Control atexit callbacks execution from external libraries
  63. which may access destroyed shm memory causing crash on shutdown.
  64. Can be y[es] or 1 to enable atexit callbacks, n[o] or 0 to disable,
  65. default is yes.
  66. .TP
  67. .BI \-A " pre\-processor\-define"
  68. Add config pre-processor define (e.g., -A WITH_AUTH, -A N=1, -A X='"Y"')
  69. .TP
  70. .BI \-b " max_rcv_buf_size"
  71. Maximum OS UDP receive buffer size which will not be exceeded by auto-probing-and-increase procedure even if OS allows.
  72. .TP
  73. .BI \-B " max_snd_buf_size"
  74. Maximum OS UDP send buffer size which will not be exceeded by auto-probing-and-increase procedure even if OS allows.
  75. .TP
  76. .BI \-c
  77. Checks the config file and displays the aliases and listen interface list.
  78. .TP
  79. .BI \-\-cfg\-print
  80. Print configuration file evaluating includes and ifdefs
  81. .TP
  82. .BI \-d
  83. Turns on debugging, multiple
  84. .B \-d
  85. increase the debug level.
  86. .TP
  87. .BI \-\-debug\fR=\fIval
  88. Debugging level value
  89. .TP
  90. .BI \-D
  91. Control how daemonize is done:
  92. .br
  93. .B \-D
  94. - do not fork (almost) anyway (run in foreground, doesn't fork into daemon mode);
  95. .br
  96. .B \-DD
  97. - do not daemonize creator (main process is not daemonized);
  98. .br
  99. .B \-DDD
  100. - daemonize (default)
  101. .TP
  102. .BI \-e
  103. Log messages printed in terminal colors (requires -E)
  104. .TP
  105. .BI \-E
  106. Sends all the log messages to stderr.
  107. .TP
  108. .BI \-f " config\-file"
  109. Reads the configuration from
  110. .B " config\-file"
  111. (default
  112. .I /etc/kamailio/kamailio.cfg
  113. ).
  114. .TP
  115. .BI \-g " gid"
  116. Changes the group id under which
  117. .B kamailio
  118. runs.
  119. .TP
  120. .BI \-G " pgid\-file"
  121. Creates a file containing the pgid of the main
  122. .B kamailio
  123. process.
  124. .TP
  125. .B \-h \-\-help
  126. Displays a short usage description, including all available options.
  127. .TP
  128. .BI \-I
  129. Displays details of internal constants and attributes.
  130. .TP
  131. .BI \-K
  132. Turns on via host checking when forwarding replies.
  133. .TP
  134. .BI \-l " address"
  135. Listens on the specified address/interface. Multiple
  136. .B \-l
  137. mean listening on multiple addresses. The address format is
  138. [proto:]addr_lst[:port][/advaddr][/socket_name],
  139. where proto=udp|tcp|tls|sctp,
  140. addr_list = addr|(addr, addrress),
  141. addr=host|ip_address|interface_name,
  142. advaddr=addr[:port] (advertised address) and
  143. socket_name=identifying name.
  144. E.g: -l localhost, -l udp:127.0.0.1:5080, -l eth0:5062,
  145. -l udp:127.0.0.1:5080/1.2.3.4:5060,
  146. -l udp:127.0.0.1:5080//local,
  147. -l udp:127.0.0.1:5080/1.2.3.4:5060/local,
  148. -l \"sctp:(eth0)\", -l \"(eth0, eth1, 127.0.0.1):5065\".
  149. The default behaviour is to listen on all the interfaces.
  150. .TP
  151. .BI \-\-loadmodule\fR=\fIname
  152. load the module specified by name
  153. .TP
  154. .BI \-\-log\-engine\fR=\fIname
  155. log engine name and data
  156. .TP
  157. .BI \-L " modules\-dir"
  158. Specifies the directory where to look for
  159. .B kamailio
  160. modules (default: /usr/lib/kamailio/modules or /usr/lib64/kamailio/modules)
  161. .TP
  162. .BI \-m " shared_mem_size"
  163. Size of the shared memory which will be allocated (in Megabytes).
  164. .TP
  165. .BI \-\-modparam\fR=\fImodname:paramname:type:value
  166. set the module parameter type has to be 's' for string value and 'i' for int value,
  167. example: --modparam=corex:alias_subdomains:s:" NAME ".org
  168. .TP
  169. .BI \-M " private_mem_size"
  170. Size of the private memory which will be allocated per process (in Megabytes).
  171. .TP
  172. .BI \-n " processes\-no"
  173. Specifies the number of children processes forked per interface (default 8).
  174. .TP
  175. .BI \-N " tcp processes\-no"
  176. Specifies the number of children processes forked to handle tcp incoming connections (by default is equal to
  177. .BI \-n
  178. ).
  179. .TP
  180. .BI \-O " optimization\-level"
  181. Script optimization level (debugging option).
  182. .TP
  183. .BI \-P " pid\-file"
  184. Creates a file containing the pid of the main
  185. .B kamailio
  186. process.
  187. .TP
  188. .BI \-Q
  189. Number of sctp child processes (default: equal to
  190. .BI \-n
  191. ).
  192. .TP
  193. .BI \-r
  194. Uses dns to check if it is necessary to add a "received=" field to a via.
  195. .TP
  196. .BI \-R
  197. Same as
  198. .B \-r
  199. but uses reverse dns (to use both:
  200. .BI \-rR
  201. ).
  202. .TP
  203. .BI \-\-server\-id\fR=\fInum
  204. Set the value for server_id
  205. .TP
  206. .BI \-\-subst\fR=\fIexp
  207. Set a subst preprocessor directive
  208. .TP
  209. .BI \-\-substdef\fR=\fIexp
  210. Set a substdef preprocessor directive
  211. .TP
  212. .BI \-\-substdefs\fR=\fIexp
  213. Set a substdefs preprocessor directive.
  214. .TP
  215. .BI \-S
  216. Disables SCTP support.
  217. .TP
  218. .BI \-t " chroot\-dir"
  219. Forces
  220. .B kamailio
  221. to chroot after reading the config file.
  222. .TP
  223. .BI \-T
  224. Disables TCP support.
  225. .TP
  226. .BI \-u " uid"
  227. Changes the user id under which
  228. .B kamailio
  229. runs.
  230. .TP
  231. .BI "\-v \-V \-\-version"
  232. Displays the version number.
  233. .TP
  234. .BI \-x " name"
  235. Specify internal manager for shared memory (shm) can be: fm, qm or tlsf
  236. .TP
  237. .BI \-X " name"
  238. Specify internal manager for private memory (pkg) if omitted, the one for shm is used
  239. .TP
  240. .BI \-Y " dir"
  241. Runtime dir path
  242. .TP
  243. .BI \-w " working\-dir"
  244. Specifies the working directory. In the very improbable event that
  245. .B kamailio
  246. will crash, the core file will be generated here.
  247. .TP
  248. .BI \-W " type"
  249. poll method (depending on support in OS, it can be: poll,
  250. epoll_lt, epoll_et, sigio_rt, select, kqueue, /dev/poll).
  251. .TP
  252. .SH FILES
  253. .PD 0
  254. .B /usr/sbin/kamailio
  255. .br
  256. .B /etc/kamailio/kamailio.cfg
  257. .br
  258. .B /usr/lib/kamailio/modules/*
  259. .PD
  260. .SH AUTHORS
  261. see
  262. .B /usr/share/doc/kamailio/AUTHORS
  263. .SH SEE ALSO
  264. .BR kamailio.cfg(5)
  265. .PP
  266. Full documentation on kamailio, including configuration guidelines, FAQs and
  267. licensing conditions, is available at
  268. .I https://www.kamailio.org/
  269. .PP
  270. For reporting bugs see
  271. .I
  272. https://github.com/kamailio/kamailio/issues.
  273. .PP
  274. Mailing lists:
  275. .nf
  276. [email protected] - kamailio user community
  277. .nf
  278. [email protected] - kamailio development, new features and unstable version