Hello I just installed kamailio-3.1 and using the default config file "kamctl start" fails
[root@registrar sbin]# ./kamctl start
INFO: Starting Kamailio :
ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start failed [root@registrar sbin]#
but when I use this command it starts: <kamailio -f path_to_config_file
[root@registrar sbin]# ./kamailio -f /usr/local/kamailio-3.1/etc/kamailio/kamailio.cfg loading modules under /usr/local/kamailio-3.1//lib64/kamailio/modules_k/:/usr/local/kamailio-3.1//lib64/kamailio/modules/ Listening on udp: 127.0.0.1:5060 udp: 192.168.168.10:5060 tcp: 127.0.0.1:5060 tcp: 192.168.168.10:5060 Aliases: tcp: localhost:5060 tcp: localhost.localdomain:5060 tcp: registrar:5060 tcp: registrar.mytestdomain.com:5060 udp: localhost:5060 udp: localhost.localdomain:5060 udp: registrar:5060 udp: registrar.mytestdomain.com:5060
[root@registrar sbin]#
Also, when I use "./kamctl start" the syslog file does not show anything at all that would help me why it is failing. But when I use "/usr/local/kamailio-3.1/sbin/kamailio -f /usr/local/kamailio-3.1/etc/kamailio/kamailio.cfg" it does update the syslog file.
Also, after kamailio start with "./kamailio -f .." I can use ./kamctl fifo <any option>. Example:
[root@registrar sbin]# ./kamctl fifo version Server:: kamailio (3.1.4 (x86_64/linux)) Build:: mi_core.c compiled on 15:09:40 Jun 24 2011 with gcc 4.1.2 Flags:: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES GIT:: e2d6f0 [root@registrar sbin]#
[root@registrar sbin]# ./kamctl fifo ps Process:: ID=0 PID=27078 Type=attendant Process:: ID=1 PID=27079 Type=udp receiver child=0 sock=127.0.0.1:5060 Process:: ID=2 PID=27080 Type=udp receiver child=1 sock=127.0.0.1:5060 Process:: ID=3 PID=27081 Type=udp receiver child=2 sock=127.0.0.1:5060 Process:: ID=4 PID=27082 Type=udp receiver child=3 sock=127.0.0.1:5060 Process:: ID=5 PID=27083 Type=udp receiver child=0 sock=192.168.168.10:5060 Process:: ID=6 PID=27084 Type=udp receiver child=1 sock=192.168.168.10:5060 Process:: ID=7 PID=27085 Type=udp receiver child=2 sock=192.168.168.10:5060 Process:: ID=8 PID=27086 Type=udp receiver child=3 sock=192.168.168.10:5060 Process:: ID=9 PID=27087 Type=slow timer Process:: ID=10 PID=27088 Type=timer Process:: ID=11 PID=27089 Type=MI FIFO Process:: ID=12 PID=27090 Type=ctl handler Process:: ID=13 PID=27091 Type=tcp receiver child=0 Process:: ID=14 PID=27092 Type=tcp receiver child=1 Process:: ID=15 PID=27093 Type=tcp receiver child=2 Process:: ID=16 PID=27094 Type=tcp receiver child=3 Process:: ID=17 PID=27095 Type=tcp main process [root@registrar sbin]#