<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    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="moz-cite-prefix">On 12/08/15 17:12, Mellow Yellow wrote:<br>
    </div>
    <blockquote cite="mid:BLU179-W5152A81E03AAD0CAEA4E6FED7E0@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
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 style="font-size: 10pt;" size="2" face="Courier
          New,sans-serif">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 style="font-size: 10pt;" size="2" face="Courier
          New,sans-serif">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 size="2" face="Courier New,sans-serif">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 size="2" face="Courier New,sans-serif">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 size="2" face="Courier New,sans-serif"># cat /proc/modules<br>
          sctp 217455 2 - Live 0xffffffffa03ed000<br>
        </font><br>
        <font size="2" face="Courier New,sans-serif"># /sbin/lsmod |
          grep sctp<br>
          sctp                  217455  2<br>
          libcrc32c              12644  2 xfs,sctp<br>
        </font><br>
        <font size="2" face="Courier New,sans-serif"># more
          /proc/sys/net/sctp/addip_enable<br>
          1<br>
        </font><br>
        <font size="2" face="Courier New,sans-serif"># checksctp<br>
          SCTP supported</font><br>
        <br>
        SCTP modules installed properly:<br>
        <font style="font-size: 10pt;" size="2" face="Courier
          New,sans-serif">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 style="font-size: 10pt;" size="2" face="Courier
          New,sans-serif">enable_sctp = 1</font><br>
         <br>
        Checking 'kamailio -v' USE_SCTP is enabled:<br>
        <font style="font-size: 10pt;" size="2" face="Courier
          New,sans-serif"># 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="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>