kamailio8
A very fast and configurable sip server
Usage
kamailio [-hfcmMdVIhEebBlLnvKrRDTNWwtugPGSQOaAxXY]
[-a
auto-aliases-mode]
[-A
pre-processor-define]
[-b
max_rcv_buf_size]
[-B
max_snd_buf_size]
[-f
config-file]
[-g
gid]
[-G
pgid-file]
[-l
address]
[-L
modules-dir]
[-M
private_mem_size]
[-m
shared_mem_size]
[-n
processes-no]
[-N
tcp
processes-no]
[-P
pid-file]
[-t
chroot-dir]
[-u
uid]
[-w
working-dir]
Overview
kamailio is a very fast and configurable SIP (RFC3261) server.
Options
-aauto-aliases-mode-
Enable auto-aliases with 'yes' or 'on', disable with 'no' or 'off
-
--alias=val -
Add an alias, the value has to be '[proto:]hostname[:port]' (like for 'alias' global parameter)
-
--atexit=val -
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.
-Apre-processor-define-
Add config pre-processor define (e.g., -A WITH_AUTH, -A N=1, -A X='"Y"')
-bmax_rcv_buf_size-
Maximum OS UDP receive buffer size which will not be exceeded by auto-probing-and-increase procedure even if OS allows.
-Bmax_snd_buf_size-
Maximum OS UDP send buffer size which will not be exceeded by auto-probing-and-increase procedure even if OS allows.
-
-c -
Checks the config file and displays the aliases and listen interface list.
-
--cfg-print -
Print configuration file evaluating includes and ifdefs
-
-d -
Turns on debugging, multiple
-dincrease the debug level.
-
--debug=val -
Debugging level value
-
-D -
Control how daemonize is done:
-D- do not fork (almost) anyway (run in foreground, doesn't fork into daemon mode);
-DD- do not daemonize creator (main process is not daemonized);
-DDD- daemonize (default)
-
-e -
Log messages printed in terminal colors (requires -E)
-
-E -
Sends all the log messages to stderr.
|
Reads the configuration from config-file (default /etc/kamailio/kamailio.cfg ). |
|---|---|
|
Changes the group id under which |
|
Creates a file containing the pgid of the main |
-
-h --help -
Displays a short usage description, including all available options.
-
-I -
Displays details of internal constants and attributes.
-
-K -
Turns on via host checking when forwarding replies.
-laddress-
Listens on the specified address/interface. Multiple
-lmean 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 The default behaviour is to listen on all the interfaces.
-
--loadmodule=name -
load the module specified by name
-
--log-engine=name -
log engine name and data
-Lmodules-dir-
Specifies the directory where to look for
kamailiomodules (default: /usr/lib/x86_64-linux-gnu/kamailio/modules or /usr/lib64/kamailio/modules)
-mshared_mem_size-
Size of the shared memory which will be allocated (in Megabytes).
-
--modparam=modname: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
-Mprivate_mem_size-
Size of the private memory which will be allocated per process (in Megabytes).
-nprocesses-no-
Specifies the number of children processes forked per interface (default 8).
-Ntcp processes-no-
Specifies the number of children processes forked to handle tcp incoming connections (by default is equal to
-n).
-Ooptimization-level-
Script optimization level (debugging option).
-Ppid-file-
Creates a file containing the pid of the main
kamailioprocess.
-
-Q -
Number of sctp child processes (default: equal to
-n).
-
-r -
Uses dns to check if it is necessary to add a "received=" field to a via.
-
-R -
Same as
-rbut uses reverse dns (to use both:-rR).
-
--server-id=num -
Set the value for server_id
-
--subst=exp -
Set a subst preprocessor directive
-
--substdef=exp -
Set a substdef preprocessor directive
-
--substdefs=exp -
Set a substdefs preprocessor directive.
-
-S -
Disables SCTP support.
-tchroot-dir-
Forces
kamailioto chroot after reading the config file.
-
-T -
Disables TCP support.
-uuid-
Changes the user id under which
kamailioruns.
-
-v -V --version -
Displays the version number.
-xname-
Specify internal manager for shared memory (shm) can be: fm, qm or tlsf
-Xname-
Specify internal manager for private memory (pkg) if omitted, the one for shm is used
-Ydir-
Runtime dir path
-wworking-dir-
Specifies the working directory. In the very improbable event that
kamailiowill crash, the core file will be generated here.
-Wtype-
poll method (depending on support in OS, it can be: poll, epoll_lt, epoll_et, sigio_rt, select, kqueue, /dev/poll).
kamailio
Files
/etc/kamailio/kamailio.cfg
/usr/lib/x86_64-linux-gnu/kamailio/modules/*
Releases
6 releases since Debian 8 (Jessie); the text changed 5 times.
--alias since Debian 11 (Bullseye);
--atexit since Debian 11 (Bullseye);
--cfg-print since Debian 11 (Bullseye);
--debug since Debian 11 (Bullseye);
--help since Debian 11 (Bullseye);
--loadmodule since Debian 11 (Bullseye);
--log-engine since Debian 11 (Bullseye);
--modparam since Debian 11 (Bullseye);
--server-id since Debian 11 (Bullseye);
--subst since Debian 11 (Bullseye);
--substdef since Debian 11 (Bullseye);
--substdefs since Debian 11 (Bullseye);
--version since Debian 11 (Bullseye);
-Q since Debian 11 (Bullseye);
-S since Debian 11 (Bullseye);
-e since Debian 11 (Bullseye);
-v since Debian 11 (Bullseye).