severity 921015 normal -- thanks Hello,
*You didn't mentioned if you are using systemd or sysv. Both have rules to create and set permissions for /var/run/kamailio dir:* *# debian/kamailio.init* *HOMEDIR=/var/run/$NAME[..]USER=kamailioGROUP=kamailio[..]* *# /var/run can be a tmpfsif [ ! -d $HOMEDIR ]; then mkdir -p $HOMEDIR chown ${USER}:${GROUP} $HOMEDIRfi # debian/kamailio.service# /var/run/kamailio in tmpfsRuntimeDirectory=kamailioRuntimeDirectoryMode=0750In my testing with the default config (sysv):seting RUN_KAMAILIO=yes on /etc/default/kamailio* *root@c56eab6f6ec2:/# service kamailio start[....] Starting Kamailio SIP Server: kamailio:Listening on udp: 127.0.0.1:5060 <http://127.0.0.1:5060> udp: 172.17.0.2:5060 <http://172.17.0.2:5060> tcp: 127.0.0.1:5060 <http://127.0.0.1:5060> tcp: 172.17.0.2:5060 <http://172.17.0.2:5060>Aliases: tcp: c56eab6f6ec2:5060 tcp: localhost:5060 udp: c56eab6f6ec2:5060 udp: localhost:5060/usr/sbin/kamailio[754]: INFO: rr [../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe module is not loaded/usr/sbin/kamailio[754]: INFO: rr [rr_mod.c:177]: mod_init(): outbound module not available/usr/sbin/kamailio[754]: INFO: <core> [main.c:2648]: main(): processes (at least): 32 - shm size: 67108864 - pkg size: 8388608/usr/sbin/kamailio[754]: INFO: <core> [core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992/usr/sbin/kamailio[754]: INFO: <core> [core/udp_server.c:205]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984/usr/sbin/kamailio[754]: INFO: <core> [core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992/usr/sbin/kamailio[754]: INFO: <core> [core/udp_server.c:205]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984/usr/sbin/kamailio[754]: ERROR: <core> [core/tcp_main.c:2739]: tcp_init(): could not get TCP protocol number/usr/sbin/kamailio[754]: ERROR: <core> [core/tcp_main.c:2739]: tcp_init(): could not get TCP protocol number. okroot@c56eab6f6ec2:/# ls -lah /var/run/kamailio/total 12Kdrwxr-xr-x 2 kamailio kamailio 4.0K Feb 1 12:49 .drwxr-xr-x 1 root root 4.0K Feb 1 12:48 ..-rw-r--r-- 1 kamailio kamailio 4 Feb 1 12:49 kamailio.pidsrw------- 1 kamailio kamailio 0 Feb 1 12:49 kamailio_ctlprw-rw---- 1 root root 0 Feb 1 12:49 kamailio_rpc.fifosrw-rw---- 1 root root 0 Feb 1 12:49 kamailio_rpc.sockroot@c56eab6f6ec2:/# kamcmd kamcmd 1.5Copyright 2006 iptelorg GmbHThis is free software with ABSOLUTELY NO WARRANTY.For details type `warranty'.kamcmd> ps754 main process - attendant755 udp receiver child=0 sock=127.0.0.1:5060 <http://127.0.0.1:5060>756 udp receiver child=1 sock=127.0.0.1:5060 <http://127.0.0.1:5060>757 udp receiver child=2 sock=127.0.0.1:5060 <http://127.0.0.1:5060>758 udp receiver child=3 sock=127.0.0.1:5060 <http://127.0.0.1:5060>759 udp receiver child=4 sock=127.0.0.1:5060 <http://127.0.0.1:5060>760 udp receiver child=5 sock=127.0.0.1:5060 <http://127.0.0.1:5060>761 udp receiver child=6 sock=127.0.0.1:5060 <http://127.0.0.1:5060>762 udp receiver child=7 sock=127.0.0.1:5060 <http://127.0.0.1:5060>763 udp receiver child=0 sock=172.17.0.2:5060 <http://172.17.0.2:5060>764 udp receiver child=1 sock=172.17.0.2:5060 <http://172.17.0.2:5060>765 udp receiver child=2 sock=172.17.0.2:5060 <http://172.17.0.2:5060>766 udp receiver child=3 sock=172.17.0.2:5060 <http://172.17.0.2:5060>767 udp receiver child=4 sock=172.17.0.2:5060 <http://172.17.0.2:5060>768 udp receiver child=5 sock=172.17.0.2:5060 <http://172.17.0.2:5060>769 udp receiver child=6 sock=172.17.0.2:5060 <http://172.17.0.2:5060>770 udp receiver child=7 sock=172.17.0.2:5060 <http://172.17.0.2:5060>771 slow timer772 timer773 secondary timer774 JSONRPCS FIFO775 JSONRPCS DATAGRAM776 ctl handler777 tcp receiver (generic) child=0778 tcp receiver (generic) child=1779 tcp receiver (generic) child=2780 tcp receiver (generic) child=3781 tcp receiver (generic) child=4782 tcp receiver (generic) child=5783 tcp receiver (generic) child=6784 tcp receiver (generic) child=7785 tcp main processkamcmd>Cheers,Victor*