<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>install gdb and when the kamailio stops responding send here the
      file generated by the next command:</p>
    <p>kamctl trap</p>
    <p>The path to the file is printed when the command is executed.
      Note that it can take a bit to generate the file, if you have a
      lot of kamailio processes. The file contains the gdb backtrace for
      each process, showing what they do at that moment.</p>
    <p>For a few of other hints, be sure you don't block the traffic
      with the firewall/fail2ban or with pike module in kamailio.cfg.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 19.11.20 16:46, Uttam Giri wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHwPDxN9fn+k0kyO3_0P2_CcqO5nAfLXd_y00L+jsyQE3E-0FQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div>
          <div>We are using Kamailio with Jitsi client where we observed
            sometimes Kamailio stops responding to sip messages. As a
            result, my Jitsi client goes offline and never back online.
            Also in the Kamailio syslog there are no error logs(debug
            enabled) related to this issue. As a temporary workaround,
            we had to restart the Kamailio server all the time.</div>
          <div>Does anyone observed a similar issue and can suggest any
            resolution.</div>
          <div><br>
          </div>
          <div>Kamailio version:-</div>
          <div>version: kamailio 5.3.5 (x86_64/linux)<br>
            flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
            DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC,
            Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
            FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER,
            USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES,
            TLS_PTHREAD_MUTEX_SHARED<br>
            ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144,
            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: unknown<br>
            compiled with gcc 7.5.0<br>
          </div>
          <div><br>
          </div>
          <div>UDP process when Kamailio stops responding:-.</div>
          <div><br>
          </div>
          <div>root@ip-10-68-16-14:/home/ugiri# kamctl ps<br>
            {<br>
              "jsonrpc":  "2.0",<br>
              "result": [<br>
                {<br>
                  "IDX":  0,<br>
                  "PID":  15436,<br>
                  "DSC":  "main process - attendant"<br>
                }, {<br>
                  "IDX":  1,<br>
                  "PID":  15442,<br>
                  "DSC":  "udp receiver child=0 sock=<a
              href="http://10.68.16.14:5060" moz-do-not-send="true">10.68.16.14:5060</a>
            (<a href="http://100.26.5.214:5060" moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
                }, {<br>
                  "IDX":  2,<br>
                  "PID":  15443,<br>
                  "DSC":  "udp receiver child=1 sock=<a
              href="http://10.68.16.14:5060" moz-do-not-send="true">10.68.16.14:5060</a>
            (<a href="http://100.26.5.214:5060" moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
                }, {<br>
                  "IDX":  3,<br>
                  "PID":  15444,<br>
                  "DSC":  "udp receiver child=2 sock=<a
              href="http://10.68.16.14:5060" moz-do-not-send="true">10.68.16.14:5060</a>
            (<a href="http://100.26.5.214:5060" moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
                }, {<br>
                  "IDX":  4,<br>
                  "PID":  15445,<br>
                  "DSC":  "udp receiver child=3 sock=<a
              href="http://10.68.16.14:5060" moz-do-not-send="true">10.68.16.14:5060</a>
            (<a href="http://100.26.5.214:5060" moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
                }, {<br>
                  "IDX":  5,<br>
                  "PID":  15446,<br>
                  "DSC":  "udp receiver child=4 sock=<a
              href="http://10.68.16.14:5060" moz-do-not-send="true">10.68.16.14:5060</a>
            (<a href="http://100.26.5.214:5060" moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
                }, {<br>
                  "IDX":  6,<br>
                  "PID":  15447,<br>
                  "DSC":  "udp receiver child=5 sock=<a
              href="http://10.68.16.14:5060" moz-do-not-send="true">10.68.16.14:5060</a>
            (<a href="http://100.26.5.214:5060" moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
                }, {<br>
                  "IDX":  7,<br>
                  "PID":  15448,<br>
                  "DSC":  "udp receiver child=6 sock=<a
              href="http://10.68.16.14:5060" moz-do-not-send="true">10.68.16.14:5060</a>
            (<a href="http://100.26.5.214:5060" moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
                }, {<br>
                  "IDX":  8,<br>
                  "PID":  15449,<br>
                  "DSC":  "udp receiver child=7 sock=<a
              href="http://10.68.16.14:5060" moz-do-not-send="true">10.68.16.14:5060</a>
            (<a href="http://100.26.5.214:5060" moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
                }, {<br>
                  "IDX":  9,<br>
                  "PID":  15450,<br>
                  "DSC":  "slow timer"<br>
                }, {<br>
                  "IDX":  10,<br>
                  "PID":  15451,<br>
                  "DSC":  "timer"<br>
                }, {<br>
                  "IDX":  11,<br>
                  "PID":  15452,<br>
                  "DSC":  "secondary timer"<br>
          </div>
          <div> }, {<br>
                  "IDX":  12,<br>
                  "PID":  15453,<br>
                  "DSC":  "JSONRPCS FIFO"<br>
                }, {<br>
                  "IDX":  13,<br>
                  "PID":  15454,<br>
                  "DSC":  "JSONRPCS DATAGRAM"<br>
                }, {<br>
                  "IDX":  14,<br>
                  "PID":  15455,<br>
                  "DSC":  "ctl handler"<br>
                }, {<br>
                  "IDX":  15,<br>
                  "PID":  15456,<br>
                  "DSC":  "Http Async Worker"<br>
                }, {<br>
                  "IDX":  16,<br>
                  "PID":  15457,<br>
                  "DSC":  "Http Async Worker"<br>
                }, {<br>
                  "IDX":  17,<br>
                  "PID":  15458,<br>
                  "DSC":  "TIMER NH"<br>
                }, {<br>
                  "IDX":  18,<br>
                  "PID":  15459,<br>
                  "DSC":  "tcp main process"<br>
                }<br>
              ],<br>
              "id": 17709<br>
            }<br>
          </div>
          <div><br>
          </div>
          <div>Thanks,</div>
          <div>Uttam</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>