123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- .\"
- .TH kamailio 8 03.02.2021 kamailio "Kamailio SIP Server"
- .\" Process with
- .\" groff -man -Tascii kamailio.8
- .\"
- .SH NAME
- kamailio \- a very fast and configurable SIP server
- .SH SYNOPSIS
- .B kamailio
- [
- .B \-hfcmMdVIhEebBlLnvKrRDTNWwtugPGSQOaAxXY
- ] [
- .BI \-a " auto\-aliases\-mode"
- ] [
- .BI \-A " pre\-processor\-define"
- ] [
- .BI \-b " max_rcv_buf_size"
- ] [
- .BI \-B " max_snd_buf_size"
- ] [
- .BI \-f " config\-file"
- ] [
- .BI \-g " gid"
- ] [
- .BI \-G " pgid\-file"
- ] [
- .BI \-l " address"
- ] [
- .BI \-L " modules\-dir"
- ] [
- .BI \-M " private_mem_size"
- ] [
- .BI \-m " shared_mem_size"
- ] [
- .BI \-n " processes\-no"
- ] [
- .BI \-N " tcp processes\-no"
- ] [
- .BI \-P " pid\-file"
- ] [
- .BI \-t " chroot\-dir"
- ] [
- .BI \-u " uid"
- ] [
- .BI \-w " working\-dir"
- ]
- .SH DESCRIPTION
- .B kamailio
- is a very fast and configurable SIP (RFC3261) server.
- .SH OPTIONS
- .TP 12
- .B
- .TP
- .BI \-a " auto\-aliases\-mode"
- Enable auto-aliases with 'yes' or 'on', disable with 'no' or 'off
- .TP
- .BI \-\-alias\fR=\fIval
- Add an alias, the value has to be '[proto:]hostname[:port]'
- (like for 'alias' global parameter)
- .TP
- .BI \-\-atexit\fR=\fIval
- Control atexit callbacks execution from external libraries
- which may access destroyed shm memory causing crash on shutdown.
- Can be y[es] or 1 to enable atexit callbacks, n[o] or 0 to disable,
- default is yes.
- .TP
- .BI \-A " pre\-processor\-define"
- Add config pre-processor define (e.g., -A WITH_AUTH, -A N=1, -A X='"Y"')
- .TP
- .BI \-b " max_rcv_buf_size"
- Maximum OS UDP receive buffer size which will not be exceeded by auto-probing-and-increase procedure even if OS allows.
- .TP
- .BI \-B " max_snd_buf_size"
- Maximum OS UDP send buffer size which will not be exceeded by auto-probing-and-increase procedure even if OS allows.
- .TP
- .BI \-c
- Checks the config file and displays the aliases and listen interface list.
- .TP
- .BI \-\-cfg\-print
- Print configuration file evaluating includes and ifdefs
- .TP
- .BI \-d
- Turns on debugging, multiple
- .B \-d
- increase the debug level.
- .TP
- .BI \-\-debug\fR=\fIval
- Debugging level value
- .TP
- .BI \-D
- Control how daemonize is done:
- .br
- .B \-D
- - do not fork (almost) anyway (run in foreground, doesn't fork into daemon mode);
- .br
- .B \-DD
- - do not daemonize creator (main process is not daemonized);
- .br
- .B \-DDD
- - daemonize (default)
- .TP
- .BI \-e
- Log messages printed in terminal colors (requires -E)
- .TP
- .BI \-E
- Sends all the log messages to stderr.
- .TP
- .BI \-f " config\-file"
- Reads the configuration from
- .B " config\-file"
- (default
- .I /etc/kamailio/kamailio.cfg
- ).
- .TP
- .BI \-g " gid"
- Changes the group id under which
- .B kamailio
- runs.
- .TP
- .BI \-G " pgid\-file"
- Creates a file containing the pgid of the main
- .B kamailio
- process.
- .TP
- .B \-h \-\-help
- Displays a short usage description, including all available options.
- .TP
- .BI \-I
- Displays details of internal constants and attributes.
- .TP
- .BI \-K
- Turns on via host checking when forwarding replies.
- .TP
- .BI \-l " address"
- Listens on the specified address/interface. Multiple
- .B \-l
- mean listening on multiple addresses. The address format is
- [proto:]addr_lst[:port][/advaddr][/socket_name],
- where proto=udp|tcp|tls|sctp,
- addr_list = addr|(addr, addrress),
- addr=host|ip_address|interface_name,
- advaddr=addr[:port] (advertised address) and
- socket_name=identifying name.
- E.g: -l localhost, -l udp:127.0.0.1:5080, -l eth0:5062,
- -l udp:127.0.0.1:5080/1.2.3.4:5060,
- -l udp:127.0.0.1:5080//local,
- -l udp:127.0.0.1:5080/1.2.3.4:5060/local,
- -l \"sctp:(eth0)\", -l \"(eth0, eth1, 127.0.0.1):5065\".
- The default behaviour is to listen on all the interfaces.
- .TP
- .BI \-\-loadmodule\fR=\fIname
- load the module specified by name
- .TP
- .BI \-\-log\-engine\fR=\fIname
- log engine name and data
- .TP
- .BI \-L " modules\-dir"
- Specifies the directory where to look for
- .B kamailio
- modules (default: /usr/lib/kamailio/modules or /usr/lib64/kamailio/modules)
- .TP
- .BI \-m " shared_mem_size"
- Size of the shared memory which will be allocated (in Megabytes).
- .TP
- .BI \-\-modparam\fR=\fImodname:paramname:type:value
- set the module parameter type has to be 's' for string value and 'i' for int value,
- example: --modparam=corex:alias_subdomains:s:" NAME ".org
- .TP
- .BI \-M " private_mem_size"
- Size of the private memory which will be allocated per process (in Megabytes).
- .TP
- .BI \-n " processes\-no"
- Specifies the number of children processes forked per interface (default 8).
- .TP
- .BI \-N " tcp processes\-no"
- Specifies the number of children processes forked to handle tcp incoming connections (by default is equal to
- .BI \-n
- ).
- .TP
- .BI \-O " optimization\-level"
- Script optimization level (debugging option).
- .TP
- .BI \-P " pid\-file"
- Creates a file containing the pid of the main
- .B kamailio
- process.
- .TP
- .BI \-Q
- Number of sctp child processes (default: equal to
- .BI \-n
- ).
- .TP
- .BI \-r
- Uses dns to check if it is necessary to add a "received=" field to a via.
- .TP
- .BI \-R
- Same as
- .B \-r
- but uses reverse dns (to use both:
- .BI \-rR
- ).
- .TP
- .BI \-\-server\-id\fR=\fInum
- Set the value for server_id
- .TP
- .BI \-\-subst\fR=\fIexp
- Set a subst preprocessor directive
- .TP
- .BI \-\-substdef\fR=\fIexp
- Set a substdef preprocessor directive
- .TP
- .BI \-\-substdefs\fR=\fIexp
- Set a substdefs preprocessor directive.
- .TP
- .BI \-S
- Disables SCTP support.
- .TP
- .BI \-t " chroot\-dir"
- Forces
- .B kamailio
- to chroot after reading the config file.
- .TP
- .BI \-T
- Disables TCP support.
- .TP
- .BI \-u " uid"
- Changes the user id under which
- .B kamailio
- runs.
- .TP
- .BI "\-v \-V \-\-version"
- Displays the version number.
- .TP
- .BI \-x " name"
- Specify internal manager for shared memory (shm) can be: fm, qm or tlsf
- .TP
- .BI \-X " name"
- Specify internal manager for private memory (pkg) if omitted, the one for shm is used
- .TP
- .BI \-Y " dir"
- Runtime dir path
- .TP
- .BI \-w " working\-dir"
- Specifies the working directory. In the very improbable event that
- .B kamailio
- will crash, the core file will be generated here.
- .TP
- .BI \-W " type"
- poll method (depending on support in OS, it can be: poll,
- epoll_lt, epoll_et, sigio_rt, select, kqueue, /dev/poll).
- .TP
- .SH FILES
- .PD 0
- .B /usr/sbin/kamailio
- .br
- .B /etc/kamailio/kamailio.cfg
- .br
- .B /usr/lib/kamailio/modules/*
- .PD
- .SH AUTHORS
- see
- .B /usr/share/doc/kamailio/AUTHORS
- .SH SEE ALSO
- .BR kamailio.cfg(5)
- .PP
- Full documentation on kamailio, including configuration guidelines, FAQs and
- licensing conditions, is available at
- .I https://www.kamailio.org/
- .PP
- For reporting bugs see
- .I
- https://github.com/kamailio/kamailio/issues.
- .PP
- Mailing lists:
- .nf
- [email protected] - kamailio user community
- .nf
- [email protected] - kamailio development, new features and unstable version
|