<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hey guys,<BR> <BR>I've been pulling out my hair for a few days trying to get SCTP with Kamailio working in CentOS 7... with no luck at all.<BR> <BR>When attempting to start Kamailio via the <em>'kamctl start' </em>command I get the following error:<br>INFO: Starting Kamailio :<BR><font face="Courier New,sans-serif" size="2" style="font-size: 10pt;">ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start failed</font><BR><br>When attempting to start Kamailio via the <em>'systemctl start kamailio' </em>command, I get the following:<br><font face="Courier New,sans-serif" size="2" style="font-size: 10pt;">Job for kamailio.service failed. See 'systemctl status kamailio.service' and 'journalctl -xn' for details.</font><br><BR>When checking the 'systemctl status kamailio -l' command, I get the following:<BR><font face="Courier New,sans-serif" size="2">kamailio.service - SYSV: Kamailio is a fast, reliable and flexible SIP Server.<br>   Loaded: loaded (/etc/rc.d/init.d/kamailio)<br>   Active: failed (Result: exit-code) since Thu 2015-08-13 00:42:51 AEST; 14s ago<br>  Process: 19229 ExecStart=/etc/rc.d/init.d/kamailio start (code=exited, status=1/FAILURE)</font><BR><font face="Courier New,sans-serif" size="2">Aug 13 00:42:51 Elastix5.workgroup /usr/sbin/kamailio[19242]: INFO: rr [rr_mod.c:174]: mod_init(): outbound module not available<br>Aug 13 00:42:51 Elastix5.workgroup /usr/sbin/kamailio[19242]: INFO: usrloc [hslot.c:51]: ul_init_locks(): locks array size 1024<br>Aug 13 00:42:51 Elastix5.workgroup /usr/sbin/kamailio[19242]: ERROR: ctl [init_socks.c:115]: init_unix_sock(): ERROR: init_unix_sock: bind: No such file or directory [2]<br>Aug 13 00:42:51 Elastix5.workgroup /usr/sbin/kamailio[19242]: ERROR: ctl [ctl.c:273]: mod_init(): ERROR: ctl: mod_init: init ctrl. sockets failed<br>Aug 13 00:42:51 Elastix5.workgroup /usr/sbin/kamailio[19242]: ERROR: <core> [sr_module.c:945]: init_mod(): Error while initializing module ctl (/usr/lib64/kamailio/modules/ctl.so)<br>Aug 13 00:42:51 Elastix5.workgroup /usr/sbin/kamailio[19242]: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized<br>Aug 13 00:42:51 Elastix5.workgroup kamailio[19229]: Starting kamailio:<br>Aug 13 00:42:51 Elastix5.workgroup systemd[1]: kamailio.service: control process exited, code=exited status=1<br>Aug 13 00:42:51 Elastix5.workgroup systemd[1]: Failed to start SYSV: Kamailio is a fast, reliable and flexible SIP Server..<br>Aug 13 00:42:51 Elastix5.workgroup systemd[1]: Unit kamailio.service entered failed state.</font><br><BR>So I started to think there was an issue with the SCTP config or whether SCTP was enabled in CentOS. However, everything looks fine:<BR><font face="Courier New,sans-serif" size="2"># cat /proc/modules<br>sctp 217455 2 - Live 0xffffffffa03ed000<br></font><BR><font face="Courier New,sans-serif" size="2"># /sbin/lsmod | grep sctp<br>sctp                  217455  2<br>libcrc32c              12644  2 xfs,sctp<br></font><BR><font face="Courier New,sans-serif" size="2"># more /proc/sys/net/sctp/addip_enable<br>1<br></font><BR><font face="Courier New,sans-serif" size="2"># checksctp<br>SCTP supported</font><br><BR>SCTP modules installed properly:<BR><font face="Courier New,sans-serif" size="2" style="font-size: 10pt;">Package lksctp-tools-devel-1.0.13-3.el7.x86_64 already installed and latest version<br>Package lksctp-tools-doc-1.0.13-3.el7.x86_64 already installed and latest version<br>Package lksctp-tools-1.0.13-3.el7.x86_64 already installed and latest version</font><br><BR>Running the ' sctp_test' command between two servers, SCTP is working fine... I can capture SCTP packets between the servers.<BR> <BR>I've left the Kamailio.cfg file as is... with the only modification being made to enable the SCTP module to start:<BR><font face="Courier New,sans-serif" size="2" style="font-size: 10pt;">enable_sctp = 1</font><BR> <BR>Checking 'kamailio -v' USE_SCTP is enabled:<BR><font face="Courier New,sans-serif" size="2" style="font-size: 10pt;"># kamailio -v<br>version: kamailio 4.3.1 (x86_64/linux) f38e67<br>flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, DBG_F_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES<br>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>id: f38e67<br>compiled on 18:17:56 Jul 20 2015 with gcc 4.8.2</font><br><BR>I've tried installing Kamailio with the precompiled rpms for CentOS 7, and I also followed some guides on installing in via GIT & compiling it myself... however the issue still remains.<BR> <BR>Any help would be greatly appreciated as I've completely run out of ideas, and there isn't much info on the web about Kamailio & SCTP.<BR> <BR>Thanks,<BR>Rob<BR>                                          </div></body>
</html>