<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Denis, please try this and see if the PRACK gets routed
      correctly (and you should also get rid of the warnings and memory
      issues).<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 21.11.2016 13:22, Denis wrote:<br>
    </div>
    <blockquote cite="mid:1728357642.20161121142238@ptl.ru" type="cite">
      <title>Re: [OpenSIPS-Users] Memory free problem</title>
      <span style=" font-family:'Times New Roman'; font-size: 12pt;">Hello,
        Bogdan!<br>
        <br>
        Yes, sure, i will test it.<br>
        <br>
        Server:: OpenSIPS (2.2.1 (x86_64/linux))<br>
        <br>
      </span><a moz-do-not-send="true" style=" font-family:'arial';
        font-size: 10pt;" href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a><br>
      <br>
      <table bgcolor="#ffffff">
        <tbody>
          <tr>
            <td bgcolor="#0000ff" width="2"><br>
            </td>
            <td><span style=" font-family:'courier new'; font-size:
                12pt;">Hi Denis,<br>
                <br>
                Yes, I see you use Topo Hiding, and as the PRACK is
                after the 200 OK + ACK, OpenSIPS dialog module does not
                match the PRACK -&gt; it sticks to the OpenSIPS IP and
                loops on it.<br>
                <br>
                If I send you a small patch (to allow PRACK inside
                dialog) could you test it ?<br>
                <br>
                Regards,<br>
                Bogdan-Andrei Iancu<br>
                OpenSIPS Founder and Developer<br>
              </span><a moz-do-not-send="true" style="
                font-family:'courier new'; font-size: 12pt;"
                href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><br>
              <span style=" font-family:'times new roman'; font-size:
                12pt;">On 21.11.2016 10:24, Denis wrote:<br>
              </span>
              <table>
                <tbody>
                  <tr>
                    <td bgcolor="#3200ff" width="2"><br>
                    </td>
                    <td><span style=" font-family:'times new roman';
                        font-size: 12pt;">Re: [OpenSIPS-Users] Memory
                        free problem Hello, Bogdan!<br>
                        <br>
                        Yes, the ngrep shows that PRACK has been
                        received, but not sent to dest SIP UA.<br>
                        The question is, why "<span style="
                          font-family:'courier new';">is looping big
                          time on your OpenSIPS<span style="
                            font-family:'times new roman';">"?<br>
                            <br>
                            Here you can find SIP log  of one of the
                            call, mentioned early, with callid '</span></span></span><a
                        moz-do-not-send="true" style="
                        font-family:'times new roman'; font-size: 12pt;"
                        href="mailto:4gk2hpk433lgdt1d6ys7ifkwd@1.1.1.1">4gk2hpk433lgdt1d6ys7ifkwd</a><span
                        style=" font-family:'times new roman';
                        font-size: 12pt;">'<br>
                      </span><a moz-do-not-send="true" style="
                        font-family:'times new roman'; font-size: 12pt;"
href="https://cloud.mail.ru/public/BvpZ/SJHLQmqEZ">https://cloud.mail.ru/public/BvpZ/SJHLQmqEZ</a><br>
                      <br>
                      <span style=" font-family:'times new roman';
                        font-size: 12pt;">In the log:<br>
                        1.1.1.1 - Caller <br>
                        2.2.2.2 - Opensips<br>
                        3.3.3.3 - Callee<br>
                        <br>
                        Top hiding has been applied for this call.<br>
                        <br>
                        Thank you.<br>
                        <br>
                      </span><a moz-do-not-send="true" style="
                        font-family:'arial'; font-size: 10pt;"
                        href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a><br>
                      <br>
                      <table bgcolor="#ffffff">
                        <tbody>
                          <tr>
                            <td bgcolor="#0000ff" width="2"><br>
                            </td>
                            <td><span style=" font-family:'courier new';
                                font-size: 12pt;">Hi Denis,<br>
                                <br>
                                It looks to me you have a PRACK request
                                that is looping big time on your
                                OpenSIPS, consuming CPU and memory - see
                                how often the warning with bogus state
                                appears. Check the routing for PRACK.<br>
                                <br>
                                Regards,<br>
                                Bogdan-Andrei Iancu<br>
                                OpenSIPS Founder and Developer<br>
                              </span><a moz-do-not-send="true" style="
                                font-family:'courier new'; font-size:
                                12pt;"
                                href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><br>
                              <span style=" font-family:'times new
                                roman'; font-size: 12pt;">On 18.11.2016
                                11:43, Denis wrote:<br>
                              </span>
                              <table>
                                <tbody>
                                  <tr>
                                    <td bgcolor="#3200ff" width="2"><br>
                                    </td>
                                    <td><span style=" font-family:'times
                                        new roman'; font-size: 12pt;">Re:
                                        [OpenSIPS-Users] Memory free
                                        problem Hello, Bogdan!<br>
                                        <br>
                                        The log you can find here<br>
                                      </span><a moz-do-not-send="true"
                                        style=" font-family:'times new
                                        roman'; font-size: 12pt;"
                                        href="https://cloud.mail.ru/public/84c1/Fw9VGe2J9">https://cloud.mail.ru/public/84c1/Fw9VGe2J9</a><br>
                                      <br>
                                      <a moz-do-not-send="true" style="
                                        font-family:'arial'; font-size:
                                        10pt;"
                                        href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a><br>
                                      <br>
                                      <table bgcolor="#ffffff">
                                        <tbody>
                                          <tr>
                                            <td bgcolor="#0000ff"
                                              width="2"><br>
                                            </td>
                                            <td><span style="
                                                font-family:'courier
                                                new'; font-size: 12pt;">Hi
                                                Denis,<br>
                                                <br>
                                                I do not think they are
                                                related. The warnings
                                                report some traffic
                                                anomalies - a PRACK
                                                request for a confirmed
                                                dialog (with 200 OK).<br>
                                                <br>
                                                On the memory part, if
                                                the log is correct, it
                                                says you have 180M free.
                                                What are the ERROR line
                                                just after that log ? I
                                                want to see which was
                                                the module trying to
                                                allocate memory.<br>
                                                <br>
                                                Regards,<br>
                                                Bogdan-Andrei Iancu<br>
                                                OpenSIPS Founder and
                                                Developer<br>
                                              </span><a
                                                moz-do-not-send="true"
                                                style="
                                                font-family:'courier
                                                new'; font-size: 12pt;"
href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><br>
                                              <span style="
                                                font-family:'times new
                                                roman'; font-size:
                                                12pt;">On 17.11.2016
                                                09:11, Denis wrote:<br>
                                              </span>
                                              <table>
                                                <tbody>
                                                  <tr>
                                                    <td
                                                      bgcolor="#3200ff"
                                                      width="2"><br>
                                                    </td>
                                                    <td><span style="
                                                        font-family:'times
                                                        new roman';
                                                        font-size:
                                                        12pt;">Memory
                                                        free problem
                                                        Hello!<br>
                                                        <br>
                                                        Today i have a
                                                        temporary
                                                        problem with out
                                                        of free memory
                                                        (about 4
                                                        minutes).<br>
                                                        Unfortunately, i
                                                        noticed the
                                                        problem when
                                                        everything
                                                        became fine, so
                                                        i didn`t make
                                                        standard
                                                        procedure of
                                                        detecting
                                                        problems with
                                                        memory which has
                                                        been described
                                                        in
                                                        documentation.<br>
                                                        <br>
                                                        In syslog i see
                                                        such sequence of
                                                        events.<br>
                                                        <br>
                                                        Before the first
                                                        message about
                                                        out of free
                                                        memory<br>
                                                        <br>
"ERROR:core:fm_malloc: not enough free shm memory (180803792 bytes
                                                        left), please
                                                        increase the
                                                        "-m" command
                                                        line parameter!"<br>
                                                        <br>
                                                        i see many
                                                        messages <br>
                                                        <br>
"WARNING:dialog:log_next_state_dlg: bogus event 5 in state 4 for dlg
                                                        0x7f1c531c95f0
                                                        [3855:951170645]
                                                        with clid '</span><a
moz-do-not-send="true" style=" font-family:'times new roman'; font-size:
                                                        12pt;"
                                                        href="mailto:4gk2hpk433lgdt1d6ys7ifkwd@1.1.1.1">4gk2hpk433lgdt1d6ys7ifkwd@1.1.1.1</a><span
                                                        style="
                                                        font-family:'times
                                                        new roman';
                                                        font-size:
                                                        12pt;">' and
                                                        tags
                                                        '96x8v2xkj9of92j'
                                                        '332693C-EF5'" <br>
"WARNING:dialog:log_next_state_dlg: bogus event 5 in state 4 for dlg
                                                        0x7f1c4735d130
                                                        [4072:1150064691]
                                                        with clid '</span><a
moz-do-not-send="true" style=" font-family:'times new roman'; font-size:
                                                        12pt;"
                                                        href="mailto:eht08t1eovzlqahle6xhfeiln@2.2.2.2">eht08t1eovzlqahle6xhfeiln@2.2.2.2</a><span
                                                        style="
                                                        font-family:'times
                                                        new roman';
                                                        font-size:
                                                        12pt;">' and
                                                        tags
                                                        '1czw3nbhw632pzn'
                                                        '3326728-1DC1'"<br>
                                                        <br>
                                                        dialing with two
                                                        callid.  <br>
                                                        <br>
                                                        The question is,
                                                        can such Warning
                                                        influence on
                                                        shm. allocation?<br>
                                                        <br>
                                                        Thank you for
                                                        any help.<br>
                                                        <br>
                                                      </span><a
                                                        moz-do-not-send="true"
                                                        style="
                                                        font-family:'arial';
                                                        font-size:
                                                        10pt;"
                                                        href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a>
                                                      <br>
                                                      <br>
                                                      <span style="
                                                        font-family:'courier
                                                        new'; font-size:
                                                        12pt;">_______________________________________________<br>
                                                        Users mailing
                                                        list<br>
                                                      </span><a
                                                        moz-do-not-send="true"
                                                        style="
                                                        font-family:'courier
                                                        new'; font-size:
                                                        12pt;"
                                                        href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
                                                      <a
                                                        moz-do-not-send="true"
                                                        style="
                                                        font-family:'courier
                                                        new'; font-size:
                                                        12pt;"
                                                        href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></td>
                                                  </tr>
                                                </tbody>
                                              </table>
                                            </td>
                                          </tr>
                                        </tbody>
                                      </table>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </blockquote>
    <br>
  </body>
</html>