<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Rik,<br>
      <br>
      So, without the TH part, it seems that the incoming ACK (from
      caller side) is not recognized and the 487 is retransmitted. How
      do you handle that ACK? are you sure it hits a t_relay() or
      t_newtran() function ?<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>

OpenSIPS Summit May 2017 Amsterdam
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
    <div class="moz-cite-prefix">On 05/12/2017 12:28 PM, Rik Broers
      wrote:<br>
    </div>
    <blockquote
cite="mid:AM5PR0602MB3331A281C6D64D2C22A2A060D2E20@AM5PR0602MB3331.eurprd06.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.E-mailStijl19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.E-mailStijl20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.E-mailStijl21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi!<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span lang="EN-GB">I’m building a proxy
            between two public endpoints, so no nat involved luckily.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">I’ve got everything to
            work except for the CANCEL. It breaks the same if I start
            the call from the other endpoint.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">Attached a visual of the
            traffic flow. Not attached, at link here:
            <a moz-do-not-send="true"
              href="https://www.dropbox.com/s/m45wwjlt4cmhy7k/Captuasdre.JPG?dl=0">https://www.dropbox.com/s/m45wwjlt4cmhy7k/Captuasdre.JPG?dl=0</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">Now I would like to fix
            the final 487 ACK bouncing, and it seems to me that opensips
            should just accept the ACK from the 487 and end the
            transaction.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">The script is based on
            the standard one after install with some routing logic. So
            the ACK is handled in the sequential path with this comment:<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"># non loose-route, but
            stateful ACK; must be an ACK after
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"># a 487 or e.g. 404 from
            upstream server<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">I also tried to
            fix/workaround it with the topology_hiding module, but as
            soon as the ACK (packet 12 in the diagram) is sent back
            opensips crashes with
            <br>
            CRITICAL:core:free_lump: called on a not free-able
            lump:0x7f9ba2cc9d68 flags=2<br>
            and no 487 is being sent to the left endpoint.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">version: opensips
            2.3.0-beta (x86_64/linux)<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">git revision: 2f688b5<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="margin-bottom:12.0pt"><span
            lang="EN-GB">Crash dump with dbg on for the topo hiding
            scenario available on request, rather not share it on the
            list
          </span><span style="font-family:Wingdings" lang="EN-GB">J</span><span
            lang="EN-GB"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">Did I hit an opensips
            bug or am I missing something?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">Regards,<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-bottom:12.0pt"><span
            style="color:black;mso-fareast-language:NL">Met vriendelijke
            groet,<br>
            <br>
          </span><b><span style="color:#84C41B;mso-fareast-language:NL">Rik
              Broers</span></b><span
            style="color:black;mso-fareast-language:NL"><br>
          </span><span
            style="font-size:9.0pt;color:#212735;mso-fareast-language:NL">Voice
            Engineer</span><span
            style="color:black;mso-fareast-language:NL"><br>
            <br>
          </span><span style="font-size:12.0pt;font-family:"Times
            New Roman",serif;mso-fareast-language:NL"><a
              moz-do-not-send="true" href="mailto:rbroers@motto.nl"><span
style="font-size:9.0pt;font-family:"Calibri",sans-serif;color:blue"><a class="moz-txt-link-abbreviated" href="mailto:rbroers@motto.nl">rbroers@motto.nl</a></span></a><o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>