Hi,
I’m going to install the kamailio 5.0.1 . One question before: Can you tell me if it included the patch for the htable (issue “ht_db_load_table(): key type must be string (type=6)”) ? Cordialement Patrick GINHOUX De : Daniel-Constantin Mierla [mailto:[email protected]] Envoyé : mercredi 5 avril 2017 17:09 À : Ginhoux, Patrick <[email protected]> Cc : Kamailio (SER) - Users Mailing List <[email protected]> Objet : Re: [SR-Users] RPCFIFOPATH / DEFINE_FIFO_NAME settings problem Hello, killproc might be only in opensuse as standalone tool and the other rpms have it in init.d lib functions... Can you install the rpms for kamailio 5.0.1? They are already built: https://build.opensuse.org/package/show/home:kamailio:v5.0.x-rpms/kamailio50 I tried to force the pid file path to killproc, but maybe the version is not supporting it. You may need to do 'killall kamailio' first time to stop existing kamailio, then do start and stop after installing the new packages. If it fails, I will look for a different solution and trigger rpms to be rebuilt. Cheers, Daniel On 05.04.17 16:50, Ginhoux, Patrick wrote: Hi, The killproc command doesn’t exist : [root@vm-vse02-siprouter2 ~]# killproc -h -bash: killproc: command not found To help the debug, I added ‘echo’ command at the case statement in the /etc/init.d/Kamailio script : # See how we were called. case "$1" in start|debug) echo "GINHOUX Start" start ;; stop) echo "GINHOUX" stop ;; status) status $KAM RETVAL=$? ;; restart) stop start ;; condrestart) if [ -f $PID_FILE ] ; then stop start fi ;; *) echo "PATRICK 2" echo $"Usage: $PROG {start|stop|restart|condrestart|status|debug|help}" exit 1 esac The results of the different action are : - service kamailio stop è Nothing is displayed - service kamailio start è Nothing is displayed - service kamailio XXX è “PATRICK 2” is displayed [root@vm-vse02-siprouter2 ~]# [root@vm-vse02-siprouter2 ~]# service kamailio stop Stopping kamailio (via systemctl): Warning: Unit file of kamailio.service changed on disk, 'systemctl daemon-reload' recommended. [ OK ] [root@vm-vse02-siprouter2 ~]# service kamailio start Starting kamailio (via systemctl): Warning: Unit file of kamailio.service changed on disk, 'systemctl daemon-reload' recommended. Job for kamailio.service failed. See 'systemctl status kamailio.service' and 'journalctl -xn' for details. [FAILED] [root@vm-vse02-siprouter2 ~]# service kamailio XXX PATRICK 2 Usage: kamailio {start|stop|restart|condrestart|status|debug|help} It seems that when ‘stop|start’ are used, linux doesn’t run the /etc/init.d/kamailio script. As you can see that it is complaining about the ‘systemctl daemon-reload’ command to use. I proceeded the same (add ‘echo’ command) on another server running the previous Kamailio rpm. On this server there are no display (from the ‘echo’ command) but kamailio stops: [root@vm-vse02-siprouter1 ~]# ps -ef |grep kam kamailio 1159 1 0 16:35 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio kamailio 1161 1159 0 16:36 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio kamailio 1162 1159 0 16:36 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio kamailio 1163 1159 0 16:36 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio kamailio 1164 1159 0 16:36 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio kamailio 1165 1159 0 16:36 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio kamailio 1166 1159 0 16:36 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio kamailio 1167 1159 0 16:36 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio kamailio 1168 1159 0 16:36 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio kamailio 1169 1159 0 16:36 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio kamailio 1170 1159 0 16:36 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio kamailio 1171 1159 0 16:36 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio kamailio 1172 1159 0 16:36 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio kamailio 1173 1159 0 16:36 ? 00:00:00 /usr/sbin/kamailio -P /var/run/kamailio.pid -m 1024 -M 8 -u kamailio -g kamailio root 1210 1189 0 16:36 pts/0 00:00:00 tail -f /var/log/kamailio/kamailio.log root 1242 1220 0 16:45 pts/1 00:00:00 grep --color=auto kam [root@vm-vse02-siprouter1 ~]# service kamailio stop Stopping kamailio (via systemctl): [ OK ] [root@vm-vse02-siprouter1 ~]# ps -ef |grep kam root 1210 1189 0 16:36 pts/0 00:00:00 tail -f /var/log/kamailio/kamailio.log root 1273 1220 0 16:46 pts/1 00:00:00 grep --color=auto kam [root@vm-vse02-siprouter1 ~]# [root@vm-vse02-siprouter1 ~]# rpm -qa |grep kam kamailio-5.0.0-7.1.x86_64 it really strange. So I’m going to revert back to the previous Kamailio rpm on the server where the stop command doesn’t work. Cordialement Patrick GINHOUX De : Daniel-Constantin Mierla [mailto:[email protected]] Envoyé : mercredi 5 avril 2017 16:00 À : Ginhoux, Patrick <mailto:[email protected]> <[email protected]> Cc : Kamailio (SER) - Users Mailing List <mailto:[email protected]> <[email protected]> Objet : Re: [SR-Users] RPCFIFOPATH / DEFINE_FIFO_NAME settings problem Hello, On 05.04.17 15:46, Ginhoux, Patrick wrote: Hi, Nothing happens after the ‘service kamailio stop’; kamailio is still running (same pid) ((as detaillled below). can you run in terminal and give the output of the next command? killproc -h It seems that some versions are using a default path to PID file, which may not match where kamailio writes it. Cheers, Daniel -- 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> -- 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>
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
