kamailio(8)
π kamailio(8) π
okay bestie, gather round, because we are talking about kamailio β the manual page lives in section 8 and it is genuinely iconic. no cap.
β¨ NAME β¨
kamailio β a very fast and configurable SIP server π¦
πΈ SYNOPSIS πΈ
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 ]
π DESCRIPTION π
so like, kamailio is a very fast and configurable SIP (RFC3261) server. that's it, that's the whole vibe. she's fast, she's configurable, she speaks SIP. periodt. π
π OPTIONS π
there are SO many flags bestie, and every single one is here, i did not skip a single one, i would never do that to you π«Ά
-aauto-aliases-mode β turn auto-aliases ON withyesoron, turn them OFF withnooroff--alias=valβ add an alias. the value has to be'[proto:]hostname[:port]'(same format as thealiasglobal parameter, iykyk)--atexit=valβ controls whether atexit callbacks run from external libraries that might go poking at destroyed shm memory and crash everything on shutdown π. usey[es]or1to enable,n[o]or0to disable, default isyes-Apre-processor-define β add a config pre-processor define (like-A WITH_AUTH,-A N=1,-A X='"Y"')-bmax_rcv_buf_size β the maximum OS UDP receive buffer size. the auto-probing-and-increase procedure will not go past this, even if your OS is feeling generous and would totally allow it-Bmax_snd_buf_size β same energy but for the maximum OS UDP send buffer size. auto-probing-and-increase won't exceed it even if the OS allows-cβ checks the config file and shows you the aliases and the listen interface list--cfg-printβ print the configuration file, evaluating includes and ifdefs-dβ turns on debugging. stack multiple-ds to crank the debug level up π₯--debug=valβ the debugging level value-Dβ controls how daemonize happens:-Dβ do not fork, (almost) anyway (runs in foreground, does not fork into daemon mode)-DDβ do not daemonize creator (the main process stays undaemonized)-DDDβ daemonize (this is the default)
-eβ log messages printed in terminal colors (needs-Eto work!)-Eβ sends all the log messages to stderr-fconfig-file β reads the configuration from config-file (default is/etc/kamailio/kamailio.cfg)-ggid β changes the group id under which kamailio runs-Gpgid-file β creates a file containing the pgid of the main kamailio process-h,--helpβ displays a short usage description with all the 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-lmeans listening on multiple addresses. the address format is[proto:]addr_lst[:port][/advaddr][/socket_name], whereproto=udp|tcp|tls|sctp,addr_list = addr|(addr, addrress),addr=host|ip_address|interface_name,advaddr=addr[:port](advertised address) andsocket_name=identifying name. for example:-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 to look for kamailio modules in (default:/usr/lib/x86_64-linux-gnu/kamailio/modulesor/usr/lib64/kamailio/modules)-mshared_mem_size β size of the shared memory that gets allocated, in Megabytes--modparam=modname:paramname:type:valueβ set the module parameter. type has to besfor a string value andifor an int value. example:--modparam=corex:alias_subdomains:s:" NAME ".org-Mprivate_mem_size β size of the private memory allocated per process, in Megabytes-nprocesses-no β specifies the number of children processes forked per interface (default8)-Ntcp processes-no β specifies the number of children processes forked to handle tcp incoming connections (by default this equals-n)-Ooptimization-level β script optimization level (this one's a debugging option)-Ppid-file β creates a file containing the pid of the main kamailio process-Qβ number of sctp child processes (default: equal to-n)-rβ uses dns to check if it's necessary to add a"received="field to a via-Rβ same as-rbut uses reverse dns (want both? go-rR)--server-id=numβ set the value forserver_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 kamailio to chroot after reading the config file-Tβ disables TCP support-uuid β changes the user id under which kamailio runs-v,-V,--versionβ displays the version number-xname β specify the internal manager for shared memory (shm). options are:fm,qmortlsf-Xname β specify the internal manager for private memory (pkg). if you leave it out, the one for shm gets used instead-Ydir β runtime dir path-wworking-dir β specifies the working directory. in the very improbable event that kamailio crashes, the core file gets generated in here π-Wtype β poll method (depending on what your OS supports it can be:poll,epoll_lt,epoll_et,sigio_rt,select,kqueue,/dev/poll)
ποΈ FILES ποΈ
/usr/sbin/kamailio/etc/kamailio/kamailio.cfg/usr/lib/x86_64-linux-gnu/kamailio/modules/*
π«Ά AUTHORS π«Ά
see /usr/share/doc/kamailio/AUTHORS
π SEE ALSO π
kamailio.cfg(5)- full documentation on kamailio β including configuration guidelines, FAQs and licensing conditions β is available at https://www.kamailio.org/
- for reporting bugs see https://github.com/kamailio/kamailio/issues
- mailing lists:
sr-users@lists.kamailio.orgβ kamailio user communitysr-dev@lists.kamailio.orgβ kamailio development, new features and unstable version
and that's the whole page bestie, you ate that π
this gorgeous thing is brought to you by the kamailio manual, dated 03.02.2021, and it slays under the name kamailio(8) β go forth and SIP, you absolute icon πβ¨
π¦ where this page comes from
- ubuntu stonking: kamailio 6.1.2-1ubuntu4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms