Attempted to test out the 0.644 branch installation fails to start Kamailio, below are the repeatable commands.
Clean install of Debian 11.
apt install git
cd /opt
cd dsiprouter
bash dsiprouter.sh install -all -servernat
At end of install:
writing new private key to '/etc/dsiprouter/certs/dsiprouter-key.pem'
-----
success
success
The Kamailio user already exists in the database - not creating again
ERROR 1133 (28000) at line 1: Can't find any matching row in the user table
kamailio.address: Records: 75 Deleted: 0 Skipped: 0 Warnings: 79
kamailio.dr_gw_lists: Records: 10 Deleted: 0 Skipped: 0 Warnings: 10
kamailio.dr_gateways: Records: 55 Deleted: 0 Skipped: 0 Warnings: 55
kamailio.dr_rules: Records: 1 Deleted: 0 Skipped: 0 Warnings: 2
The Kamailio mpath has been updated to: /usr/lib/x86_64-linux-gnu/kamailio/modules/
SERVERNAT is enabled - Restarting Kamailio is required
You can restart it by executing: systemctl restart kamailio
Job for kamailio.service failed because the control process exited with error code.
See "systemctl status kamailio.service" and "journalctl -xe" for details.
Kamailio install failed
Checking status of kamailio....
root@sip1:/opt/dsiprouter# systemctl status kamailio.service
● kamailio.service - Kamailio - the Open Source SIP Server
Loaded: loaded (/lib/systemd/system/kamailio.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2022-06-23 18:32:21 PDT; 6min ago
Process: 25247 ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PK>
CPU: 222ms
Jun 23 18:32:21 sip1 systemd[1]: kamailio.service: Scheduled restart job, restart counter is at 5.
Jun 23 18:32:21 sip1 systemd[1]: Stopped Kamailio - the Open Source SIP Server.
Jun 23 18:32:21 sip1 systemd[1]: kamailio.service: Start request repeated too quickly.
Jun 23 18:32:21 sip1 systemd[1]: kamailio.service: Failed with result 'exit-code'.
Jun 23 18:32:21 sip1 systemd[1]: Failed to start Kamailio - the Open Source SIP Server.
Checking jounralctl -xe
root@sip1:/opt/dsiprouter# journalctl -xe
Jun 23 18:32:20 sip1 kamailio[25247]: WARNING: <core> [core/cfg.y:3660]: warn_at(): warning in config file /etc/kamailio/kamailio.cfg, line 2219, column 6-60: constant value in if(...)
Jun 23 18:32:20 sip1 kamailio[25247]: WARNING: <core> [core/cfg.y:3660]: warn_at(): warning in config file /etc/kamailio/kamailio.cfg, line 2284, column 6-45: constant value in if(...)
Jun 23 18:32:20 sip1 kamailio[25247]: ERROR: bad config file (1 errors) (parsing code: 0)
Jun 23 18:32:20 sip1 kamailio[25247]: INFO: stirshaken [stirshaken_mod.c:373]: mod_destroy(): mod stirshaken destroy
Jun 23 18:32:20 sip1 kamailio[25247]: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Jun 23 18:32:20 sip1 systemd[1]: kamailio.service: Control process exited, code=exited, status=255/EXCEPTION
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit kamailio.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 255.
Jun 23 18:32:20 sip1 systemd[1]: kamailio.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit kamailio.service has entered the 'failed' state with result 'exit-code'.
Jun 23 18:32:20 sip1 systemd[1]: Failed to start Kamailio - the Open Source SIP Server.
░░ Subject: A start job for unit kamailio.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit kamailio.service has finished with a failure.
░░
░░ The job identifier is 1388 and the job result is failed.
Jun 23 18:32:21 sip1 systemd[1]: kamailio.service: Scheduled restart job, restart counter is at 5.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ Automatic restarting of the unit kamailio.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Jun 23 18:32:21 sip1 systemd[1]: Stopped Kamailio - the Open Source SIP Server.
░░ Subject: A stop job for unit kamailio.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A stop job for unit kamailio.service has finished.
░░
░░ The job identifier is 1450 and the job result is done.
Jun 23 18:32:21 sip1 systemd[1]: kamailio.service: Start request repeated too quickly.
Jun 23 18:32:21 sip1 systemd[1]: kamailio.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit kamailio.service has entered the 'failed' state with result 'exit-code'.
Jun 23 18:32:21 sip1 systemd[1]: Failed to start Kamailio - the Open Source SIP Server.
░░ Subject: A start job for unit kamailio.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit kamailio.service has finished with a failure.
░░
░░ The job identifier is 1450 and the job result is failed.
lines 2171-2227/2227 (END)
Debain version:
When looking at install/build output only things that stand out are:
make[1]: Entering directory '/tmp/kamailio/src'
target architecture <x86_64>, host architecture <x86_64>
making config...
make[1]: Leaving directory '/tmp/kamailio/src'
CC (gcc) [M dsiprouter.so] mod_dsiprouter.o
CC (gcc) [M dsiprouter.so] mod_funcs.o
mod_funcs.c: In function ‘strsplit’:
mod_funcs.c:86:9: warning: unused variable ‘sub_count’ [-Wunused-variable]
86 | size_t sub_count = 0; /* number of substrings */
| ^~~~~~~~~
mod_funcs.c: In function ‘validate_license’:
mod_funcs.c:241:17: warning: pointer targets in passing argument 1 of ‘verifyRSA’ differ in signedness [-Wpointer-sign]
241 | if (!verifyRSA(license, strlen(license), signature, sig_len, licensing_public_key)) {
| ^~~~~~~
| |
| char *
mod_funcs.c:189:36: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
189 | int verifyRSA(const unsigned char *msg, size_t msglen, unsigned char *sig, size_t siglen, unsigned char *pubkey) {
| ~~~~~~~~~~~~~~~~~~~~~^~~
mod_funcs.c:241:63: warning: pointer targets in passing argument 5 of ‘verifyRSA’ differ in signedness [-Wpointer-sign]
241 | if (!verifyRSA(license, strlen(license), signature, sig_len, licensing_public_key)) {
| ^~~~~~~~~~~~~~~~~~~~
| |
| char *
mod_funcs.c:189:106: note: expected ‘unsigned char *’ but argument is of type ‘char *’
189 | SA(const unsigned char *msg, size_t msglen, unsigned char *sig, size_t siglen, unsigned char *pubkey) {
| ~~~~~~~~~~~~~~~^~~~~~
CC (gcc) [L libsrdb2.so.1.0] db.o
CC (gcc) [L libsrdb2.so.1.0] db_cmd.o
CC (gcc) [L libsrdb2.so.1.0] db_con.o
CC (gcc) [L libsrdb2.so.1.0] db_ctx.o
CC (gcc) [L libsrdb2.so.1.0] db_drv.o
CC (gcc) [L libsrdb2.so.1.0] db_fld.o
CC (gcc) [L libsrdb2.so.1.0] db_gen.o
CC (gcc) [L libsrdb2.so.1.0] db_pool.o
CC (gcc) [L libsrdb2.so.1.0] db_rec.o
CC (gcc) [L libsrdb2.so.1.0] db_res.o
CC (gcc) [L libsrdb2.so.1.0] db_uri.o
LD (gcc) [L libsrdb2.so.1.0] libsrdb2.so.1.0
LD (gcc) [M dsiprouter.so] dsiprouter.so
Selecting previously unselected package cmake-data.
Syslog tailed
Jun 23 18:30:25 sip1 systemd[1]: Stopping System Logging Service...
Jun 23 18:30:25 sip1 systemd[1]: rsyslog.service: Succeeded.
Jun 23 18:30:25 sip1 systemd[1]: Stopped System Logging Service.
Jun 23 18:30:25 sip1 systemd[1]: Starting System Logging Service...
Jun 23 18:30:25 sip1 systemd[1]: Started System Logging Service.
Jun 23 18:30:25 sip1 rsyslogd: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd. [v8.2102.0]
Jun 23 18:30:25 sip1 rsyslogd: [origin software="rsyslogd" swVersion="8.2102.0" x-pid="15505" x-info="https://www.rsyslog.com"] start
Jun 23 18:32:18 sip1 systemd[1]: Reloading.
Jun 23 18:32:18 sip1 systemd[1]: Reloading.
Jun 23 18:32:18 sip1 systemd[1]: Stopping Kamailio - the Open Source SIP Server...
Jun 23 18:32:18 sip1 systemd[1]: kamailio.service: Succeeded.
Jun 23 18:32:18 sip1 systemd[1]: Stopped Kamailio - the Open Source SIP Server.
Jun 23 18:32:18 sip1 systemd[1]: Starting Kamailio - the Open Source SIP Server...
Jun 23 18:32:18 sip1 kamailio[25241]: ERROR: bad config file (1 errors) (parsing code: 0)
Jun 23 18:32:18 sip1 systemd[1]: kamailio.service: Control process exited, code=exited, status=255/EXCEPTION
Jun 23 18:32:18 sip1 systemd[1]: kamailio.service: Failed with result 'exit-code'.
Jun 23 18:32:18 sip1 systemd[1]: Failed to start Kamailio - the Open Source SIP Server.
Jun 23 18:32:19 sip1 systemd[1]: kamailio.service: Scheduled restart job, restart counter is at 1.
Jun 23 18:32:19 sip1 systemd[1]: Stopped Kamailio - the Open Source SIP Server.
Jun 23 18:32:19 sip1 systemd[1]: Starting Kamailio - the Open Source SIP Server...
Jun 23 18:32:19 sip1 kamailio[25244]: ERROR: bad config file (1 errors) (parsing code: 0)
Jun 23 18:32:19 sip1 systemd[1]: kamailio.service: Control process exited, code=exited, status=255/EXCEPTION
Jun 23 18:32:19 sip1 systemd[1]: kamailio.service: Failed with result 'exit-code'.
Jun 23 18:32:19 sip1 systemd[1]: Failed to start Kamailio - the Open Source SIP Server.
Jun 23 18:32:19 sip1 systemd[1]: kamailio.service: Scheduled restart job, restart counter is at 2.
Jun 23 18:32:19 sip1 systemd[1]: Stopped Kamailio - the Open Source SIP Server.
Jun 23 18:32:19 sip1 systemd[1]: Starting Kamailio - the Open Source SIP Server...
Jun 23 18:32:19 sip1 kamailio[25245]: ERROR: bad config file (1 errors) (parsing code: 0)
Jun 23 18:32:19 sip1 systemd[1]: kamailio.service: Control process exited, code=exited, status=255/EXCEPTION
Jun 23 18:32:19 sip1 systemd[1]: kamailio.service: Failed with result 'exit-code'.
Jun 23 18:32:19 sip1 systemd[1]: Failed to start Kamailio - the Open Source SIP Server.
Jun 23 18:32:20 sip1 systemd[1]: kamailio.service: Scheduled restart job, restart counter is at 3.
Jun 23 18:32:20 sip1 systemd[1]: Stopped Kamailio - the Open Source SIP Server.
Jun 23 18:32:20 sip1 systemd[1]: Starting Kamailio - the Open Source SIP Server...
Jun 23 18:32:20 sip1 kamailio[25246]: ERROR: bad config file (1 errors) (parsing code: 0)
Jun 23 18:32:20 sip1 systemd[1]: kamailio.service: Control process exited, code=exited, status=255/EXCEPTION
Jun 23 18:32:20 sip1 systemd[1]: kamailio.service: Failed with result 'exit-code'.
Jun 23 18:32:20 sip1 systemd[1]: Failed to start Kamailio - the Open Source SIP Server.
Jun 23 18:32:20 sip1 systemd[1]: kamailio.service: Scheduled restart job, restart counter is at 4.
Jun 23 18:32:20 sip1 systemd[1]: Stopped Kamailio - the Open Source SIP Server.
Jun 23 18:32:20 sip1 systemd[1]: Starting Kamailio - the Open Source SIP Server...
Jun 23 18:32:20 sip1 kamailio[25247]: ERROR: bad config file (1 errors) (parsing code: 0)
Jun 23 18:32:20 sip1 systemd[1]: kamailio.service: Control process exited, code=exited, status=255/EXCEPTION
Jun 23 18:32:20 sip1 systemd[1]: kamailio.service: Failed with result 'exit-code'.
Jun 23 18:32:20 sip1 systemd[1]: Failed to start Kamailio - the Open Source SIP Server.
Jun 23 18:32:21 sip1 systemd[1]: kamailio.service: Scheduled restart job, restart counter is at 5.
Jun 23 18:32:21 sip1 systemd[1]: Stopped Kamailio - the Open Source SIP Server.
Jun 23 18:32:21 sip1 systemd[1]: kamailio.service: Start request repeated too quickly.
Jun 23 18:32:21 sip1 systemd[1]: kamailio.service: Failed with result 'exit-code'.
Jun 23 18:32:21 sip1 systemd[1]: Failed to start Kamailio - the Open Source SIP Server.