Hi,
New update.
I attempt to stop kamailio with the ‘service kamailio stop command’ but it doesn’t stop:
[root@vm-vse02-siprouter2 ~]# ps -ef |grep kam
kamailio 1157 1 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1159 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1160 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1161 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1162 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1163 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1164 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1165 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1166 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1167 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1168 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1169 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1170 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1171 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
root 1197 1175 0 15:12 pts/0 00:00:00 grep --color=auto kam
[root@vm-vse02-siprouter2 ~]#
[root@vm-vse02-siprouter2 ~]# service kamailio stop
Stopping kamailio (via systemctl): [ OK ]
We can see that kamailio is still running:
[root@vm-vse02-siprouter2 ~]# ps -ef |grep kam
kamailio 1157 1 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1159 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1160 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1161 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1162 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1163 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1164 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1165 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1166 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1167 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1168 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1169 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1170 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1171 1157 0 15:10 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
root 1238 1175 0 15:17 pts/0 00:00:00 grep --color=auto kam
The /var/run/Kamailio folder looks good for the fifo file :
[root@vm-vse02-siprouter2 ~]# ll /var/run/kamailio/
total 4
srw------- 1 kamailio kamailio 0 Apr 5 15:10 kamailio_ctl
-rw-r----- 1 kamailio kamailio 5 Apr 5 15:10 kamailio.pid
prwxr-xr-x 1 kamailio kamailio 0 Apr 5 15:10 kamailio_rpc_fifo
But then the ‘restart’ command failed :
[root@vm-vse02-siprouter2 ~]# service kamailio restart
Restarting kamailio (via systemctl): Job for kamailio.service failed. See 'systemctl
status kamailio.service' and 'journalctl -xn' for details.
[FAILED]
[root@vm-vse02-siprouter2 ~]#
[root@vm-vse02-siprouter2 ~]# systemctl status kamailio.service -l
kamailio.service - SYSV: Kamailio is a fast, reliable and flexible SIP Server.
Loaded: loaded (/etc/rc.d/init.d/kamailio)
Active: failed (Result: exit-code) since Wed 2017-04-05 15:19:09 CEST; 13s ago
Process: 1256 ExecStart=/etc/rc.d/init.d/kamailio start (code=exited, status=1/FAILURE)
Apr 05 15:19:09 vm-vse02-siprouter2 kamailio[1267]: DEBUG: <core>
[core/sr_module.c:694]: find_mod_export_record(): find_export_record: found
<is_method> in module textops [/usr/lib64/kamailio/modules/textops.so]
Apr 05 15:19:09 vm-vse02-siprouter2 kamailio[1267]: DEBUG: <core>
[core/route_struct.c:129]: mk_action(): ACTION_#24 #0/2: 9(9)/ (nil)
Apr 05 15:19:09 vm-vse02-siprouter2 kamailio[1267]: DEBUG: <core>
[core/route_struct.c:129]: mk_action(): ACTION_#24 #1/2: 3(3)/ (nil)
Apr 05 15:19:09 vm-vse02-siprouter2 kamailio[1267]: WARNING: <core>
[core/cfg.y:3378]: warn_at(): warning in config file //etc/kamailio/kamailio.cfg, line
978, column 6-13: constant value in if(...)
Apr 05 15:19:09 vm-vse02-siprouter2 kamailio[1267]: INFO: <core>
[core/sctp_core.c:75]: sctp_core_check_support(): SCTP API not enabled - if you want to
use it, load sctp module
Apr 05 15:19:09 vm-vse02-siprouter2 kamailio[1269]: CRITICAL: <core>
[core/daemonize.c:345]: daemonize(): running process found in the pid file
/var/run/kamailio/kamailio.pid
Apr 05 15:19:09 vm-vse02-siprouter2 kamailio[1256]: Starting kamailio:
Apr 05 15:19:09 vm-vse02-siprouter2 systemd[1]: kamailio.service: control process exited,
code=exited status=1
Apr 05 15:19:09 vm-vse02-siprouter2 systemd[1]: Failed to start SYSV: Kamailio is a fast,
reliable and flexible SIP Server..
Apr 05 15:19:09 vm-vse02-siprouter2 systemd[1]: Unit kamailio.service entered failed
state.
Does it help to understand why this happen with the new Kamailio rpm
(kamailio-5.0.0-10.1.x86_64)?
Cordialement
Patrick GINHOUX
De : Ginhoux, Patrick
Envoyé : mercredi 5 avril 2017 14:49
À : 'miconda(a)gmail.com' <miconda(a)gmail.com>
Cc : Kamailio (SER) - Users Mailing List <sr-users(a)lists.sip-router.org>
Objet : RE: [SR-Users] RPCFIFOPATH / DEFINE_FIFO_NAME settings problem
Hi,
Actually I discovered that kamailio is running after I break the ‘service Kamailio start’
command because of no response.
So I kill the Kamailio processes, check that it is not running anymore. In this case the
start command is sufficient.
Below the action I do:
[root@vm-vse02-siprouter2 ~]# ps -ef |grep kam
kamailio 1426 1 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1427 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1428 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1429 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1430 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1431 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1432 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1433 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1434 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1435 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1436 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1437 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1438 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1439 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
root 1461 1171 0 14:45 pts/0 00:00:00 grep --color=auto kam
[root@vm-vse02-siprouter2 ~]# kill 1426
[root@vm-vse02-siprouter2 ~]#
[root@vm-vse02-siprouter2 ~]# ps -ef |grep kam
root 1465 1171 0 14:46 pts/0 00:00:00 grep --color=auto kam
[root@vm-vse02-siprouter2 ~]#
[root@vm-vse02-siprouter2 ~]# service kamailio start
Starting kamailio (via systemctl): ^C
[root@vm-vse02-siprouter2 ~]#
[root@vm-vse02-siprouter2 ~]#
[root@vm-vse02-siprouter2 ~]# ps -ef |grep kam
kamailio 1495 1 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1496 1495 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1497 1495 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1498 1495 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1499 1495 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1500 1495 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1501 1495 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1502 1495 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1503 1495 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1504 1495 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1505 1495 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1506 1495 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1507 1495 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1508 1495 0 14:47 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
root 1511 1171 0 14:47 pts/0 00:00:00 grep --color=auto kam
Cordialement
Patrick GINHOUX
De : Daniel-Constantin Mierla [mailto:miconda@gmail.com]
Envoyé : mercredi 5 avril 2017 14:42
À : Ginhoux, Patrick <patrick.ginhoux(a)fr.unisys.com
<mailto:patrick.ginhoux@fr.unisys.com> >
Cc : Kamailio (SER) - Users Mailing List <sr-users(a)lists.sip-router.org
<mailto:sr-users@lists.sip-router.org> >
Objet : Re: [SR-Users] RPCFIFOPATH / DEFINE_FIFO_NAME settings problem
Hello,
if kamailio is already running, you have to do a restart:
service kamailio restart
Cheers,
Daniel
On 05.04.17 14:38, Ginhoux, Patrick wrote:
Hi,
Message resend due to size exceeded.
Yes, it is running that is something I don’t understand how it can start with this error:
[root@vm-vse02-siprouter2 ~]# ps -ef |grep kam
kamailio 1225 1 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1226 1225 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1227 1225 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1228 1225 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1229 1225 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1230 1225 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1231 1225 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1232 1225 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1233 1225 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1234 1225 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1235 1225 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1236 1225 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1237 1225 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1238 1225 0 14:03 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
root 1344 1171 0 14:26 pts/0 00:00:00 grep --color=auto kam
So I kill the processes and then start again Kamailio, that again doesn’t end without
CTRL-C. After that I can see Kamailio running:
[root@vm-vse02-siprouter2 ~]# ps -ef |grep kam
kamailio 1426 1 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1427 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1428 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1429 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1430 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1431 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1432 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1433 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1434 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1435 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1436 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1437 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1438 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
kamailio 1439 1426 0 14:31 ? 00:00:00 /usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio
root 1444 1171 0 14:32 pts/0 00:00:00 grep --color=auto kam
Do you have an idea that could explain this result?
Cordialement
Patrick GINHOUX
--
Daniel-Constantin Mierla
www.twitter.com/miconda <http://www.twitter.com/miconda> --
www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
Kamailio Advanced Training - May 22-24 (USA) -
www.asipto.com
<http://www.asipto.com>
Kamailio World Conference - May 8-10, 2017 -
www.kamailioworld.com
<http://www.kamailioworld.com>