<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'>Hi,<BR> <BR>Daniel thanks for you assistance thus far.<BR> <BR><font face="Calibri,sans-serif">So I uncomment the two lines... Kamailio now starts.</font><BR><font face="Calibri,sans-serif"></font> <BR><font face="Calibri,sans-serif">If I add in the 'enable_sctp = 1' parameter into the kamailio.cfg file, and attempt to start Kamailio again, I get the same errors again:</font><BR><font face="Arial" size="2"></font> <BR><font face="Courier New,sans-serif" size="2"># systemctl status kamailio.service -l<br>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 22:18:29 AEST; 3s ago<br>  Process: 17720 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 22:18:29 Elastix5.workgroup systemd[1]: Starting SYSV: Kamailio is a fast, reliable and flexible SIP Server....<br>Aug 13 22:18:29 Elastix5.workgroup kamailio[17720]: Not starting : invalid configuration file!<br>Aug 13 22:18:29 Elastix5.workgroup kamailio[17720]: 0(17728) INFO: <core> [sctp_core.c:75]: sctp_core_check_support(): SCTP API not enabled - if yo                               u want to use it, load sctp module<br>Aug 13 22:18:29 Elastix5.workgroup kamailio[17720]: ERROR: sctp enabled, but not supported by the OS<br>Aug 13 22:18:29 Elastix5.workgroup kamailio[17720]: 0(17728) INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized<br>Aug 13 22:18:29 Elastix5.workgroup systemd[1]: kamailio.service: control process exited, code=exited status=1<br>Aug 13 22:18:29 Elastix5.workgroup systemd[1]: Failed to start SYSV: Kamailio is a fast, reliable and flexible SIP Server..<br>Aug 13 22:18:29 Elastix5.workgroup systemd[1]: Unit kamailio.service entered failed state.</font><br><BR>Any further ideas?<BR>Let me know if you need more logs etc.<BR> <BR>Cheers,<BR>Rob<br> <BR><div><hr id="stopSpelling">Date: Wed, 12 Aug 2015 17:20:00 +0200<br>From: miconda@gmail.com<br>To: sr-users@lists.sip-router.org<br>Subject: Re: [SR-Users] Kamailio SCTP with CentOS<br><br>
  
    
  
  
    Hello,<br>
    <br>
    this is likely to be the issue with the default path to ctl socket
    set in the packaging.<br>
    <br>
    Edit your config file, look for the lines:<br>
    <br>
    # ----- mi_fifo params -----<br>
    #modparam("mi_fifo", "fifo_name", "/var/run/kamailio/kamailio_fifo")<br>
    <br>
    # ----- ctl params -----<br>
    #modparam("ctl", "binrpc", "unix:/var/run/kamailio/kamailio_ctl")<br>
    <br>
    and uncomment the two lines with modparam.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="ecxmoz-cite-prefix">On 12/08/15 17:12, Mellow Yellow wrote:<br>
    </div>
    <blockquote cite="mid:BLU179-W5152A81E03AAD0CAEA4E6FED7E0@phx.gbl">
      <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
      <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>
      <br>
      <fieldset class="ecxmimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="ecxmoz-signature">-- 
Daniel-Constantin Mierla
<a class="ecxmoz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a class="ecxmoz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
  

<br>_______________________________________________
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</div>                                         </div></body>
</html>