Hi,

I'm not sure about Centos 7, but on Centos 6, you need to update kamailio init.d script to make it work. Following lines should be updated:
KAM=/usr/local/sbin/kamailio
KAMCFG=/usr/local/etc/kamailio/kamailio.cfg
PROG=kamailio
PID_FILE=/var/run/kamailio/kamailio.pid

And you need to create directory /var/run/kamailio and add access rights to kamailio user.

With kind regards,

Jurijs

On Thu, Aug 4, 2016 at 4:30 PM, Fabian Borot <fborot@hotmail.com> wrote:

Hello

I installed/compiled version 4.4 on CentOS 7. When I start the server like this: "./kamctl start" it works but when I try to use the script: "/etc/init.d/kamailio" it fails


 

[root@ar-mia-proxy-01 sbin]# /etc/init.d/kamailio start
Starting kamailio (via systemctl):  Job for kamailio.service failed because the control process exited with error code. See "systemctl status kamailio.service" and "journalctl -xe" for details.
                                                           [FAILED]
[root@ar-mia-proxy-01 sbin]#

when running the "status" I see this:

[root@ar-mia-proxy-01 sbin]# /etc/init.d/kamailio status
â kamailio.service - LSB: Kamailio (OpenSER) - the Open Source SIP Server
   Loaded: loaded (/etc/rc.d/init.d/kamailio)
   Active: failed (Result: exit-code) since Thu 2016-08-04 15:25:59 GMT; 14s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 5556 ExecStart=/etc/rc.d/init.d/kamailio start (code=exited, status=1/FAILURE)

Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: Starting LSB: Kamailio (OpenSER) - the Open Source SIP Server...
Aug 04 15:25:59 ar-mia-proxy-01.dom.com kamailio[5556]: Starting kamailio:
Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: kamailio.service: control process exited, code=exited status=1
Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: Failed to start LSB: Kamailio (OpenSER) - the Open Source SIP Server.
Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: Unit kamailio.service entered failed state.
Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: kamailio.service failed.
[root@ar-mia-proxy-01 sbin]#

I welcome all ideas, thank you in advance






_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users