Hi!
I did this tutorial: https://sonnguyen.ws/install-kamailio-debianubuntu/
When I try to start the daemon I get:
# systemctl start kamailio Job for kamailio.service failed because the control process exited with error code. See "systemctl status kamailio.service" and "journalctl -xe" for details.
Doing systemctl status kamailio shows:
# systemctl status kamailio ● kamailio.service - Kamailio (OpenSER) - the Open Source SIP Server Loaded: loaded (/lib/systemd/system/kamailio.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Fri 2018-09-14 20:26:25 BST; 44s ago Process: 29482 ExecStart=/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP (code=exited, status=255) Main PID: 24331 (code=exited, status=0/SUCCESS)
Sep 14 20:26:25 thunix.org /usr/sbin/kamailio[29484]: ERROR: <core> [db.c:318]: db_do_init2(): could not add connection to the pool Sep 14 20:26:25 thunix.org /usr/sbin/kamailio[29484]: ERROR: usrloc [dlist.c:654]: register_udomain(): failed to open database connection Sep 14 20:26:25 thunix.org /usr/sbin/kamailio[29484]: ERROR: registrar [reg_mod.c:566]: domain_fixup(): failed to register domain Sep 14 20:26:25 thunix.org /usr/sbin/kamailio[29484]: ERROR: <core> [route.c:1153]: fix_actions(): fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:646 Sep 14 20:26:25 thunix.org /usr/sbin/kamailio[29484]: ERROR: <core> [route.c:1153]: fix_actions(): fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:649 Sep 14 20:26:25 thunix.org /usr/sbin/kamailio[29484]: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Sep 14 20:26:25 thunix.org systemd[1]: kamailio.service: Control process exited, code=exited status=255 Sep 14 20:26:25 thunix.org systemd[1]: Failed to start Kamailio (OpenSER) - the Open Source SIP Server. Sep 14 20:26:25 thunix.org systemd[1]: kamailio.service: Unit entered failed state. Sep 14 20:26:25 thunix.org systemd[1]: kamailio.service: Failed with result 'exit-code'.
My /etc/kamailio/kamailio.cfg is: http://paste.debian.net/1042245/
This is the output of journalctl --no-pager|grep kamailio http://paste.debian.net/1042246/
What should I do to fix this?
Thanks,
hexhaxtron