<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">HI Alan,<br>
      <br>
      I suspect a scripting issue, making the received hop-by-hop ACK
      (for negative replies) to be "handled" by the dialog module, which
      treats it as a end-2-end ACK (for 200 OK reply).<br>
      <br>
      I guess your script lacks this block
      <a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/blob/master/etc/opensips.cfg#L112">https://github.com/OpenSIPS/opensips/blob/master/etc/opensips.cfg#L112</a>
      when comes to sequential requests; this block needs to be before
      the loose_route or any dialog/TH matching.<br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <div class="moz-cite-prefix">On 21.03.2024 12:29, Alain Bieuzent
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:CFD0CD52-7CA7-4D15-A1A9-BC859B139065@free.fr">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator"
        content="Microsoft Word 15 (filtered medium)">
      <style>@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;}@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:Consolas;}span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}div.WordSection1
        {page:WordSection1;}</style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size:11.0pt">Hi bogdan,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Find
            attached the sip traces where we have this error log:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Mar
            21 11:24:13 lbsip-rtpe-test opensips[3108]:
            WARNING:dialog:dlg_onroute: tight matching failed for ACK
            with
            callid='<a class="moz-txt-link-abbreviated" href="mailto:6a543fbd6eabdc7b797dfd6d56db1568@10.101.180.176:5060">6a543fbd6eabdc7b797dfd6d56db1568@10.101.180.176:5060</a>'/52,
            ftag='as5625de52'/10,
            ttag='b5a7-94b8b0d1dd76318f3d174a911be4ece2'/37 and
            direction=1<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Mar
            21 11:24:13 lbsip-rtpe-test opensips[3108]:
            WARNING:dialog:dlg_onroute: dialog identification elements
            are
            callid='<a class="moz-txt-link-abbreviated" href="mailto:6a543fbd6eabdc7b797dfd6d56db1568@10.101.180.176:5060">6a543fbd6eabdc7b797dfd6d56db1568@10.101.180.176:5060</a>'/52,
            caller tag='as5625de52'/10, callee
            tag='3920005391-2017127892'/21<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
        <div
style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
          <p class="MsoNormal"><b><span style="color:black">De : </span></b><span
              style="color:black">Bogdan-Andrei Iancu
              <a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a><br>
              <b>Date : </b>mercredi 20 mars 2024 à 16:45<br>
              <b>À : </b>Alain Bieuzent <a class="moz-txt-link-rfc2396E" href="mailto:alain.bieuzent@free.fr"><alain.bieuzent@free.fr></a>,
              OpenSIPS users mailling list
              <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
              <b>Objet : </b>Re: [OpenSIPS-Users] OPENSIP 3.4
              send_reply and tight matching failed</span><span
style="color:black;mso-ligatures:none;mso-fareast-language:FR"><o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        </div>
        <p class="MsoNormal"><span
            style="font-family:"Courier New"">Not the logs,
            but the trace/ SIP capture - I need to see the sip traffic
            to understand the context of the issue.<br>
            <br>
            <br>
          </span><o:p></o:p></p>
        <pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
        <pre>  <a href="https://www.opensips-solutions.com"
        moz-do-not-send="true" class="moz-txt-link-freetext">https://www.opensips-solutions.com</a><o:p></o:p></pre>
        <pre>  <a href="https://www.siphub.com" moz-do-not-send="true"
        class="moz-txt-link-freetext">https://www.siphub.com</a><o:p></o:p></pre>
        <div>
          <p class="MsoNormal">On 20.03.2024 17:14, Alain Bieuzent
            wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal"><span style="font-size:11.0pt"
              lang="EN-US">Bellow the link to the traces : </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="font-size:11.0pt"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="font-size:11.0pt"
              lang="EN-US"><a
                href="https://www.transfernow.net/dl/20240320jzEA98Vz"
                moz-do-not-send="true" class="moz-txt-link-freetext">https://www.transfernow.net/dl/20240320jzEA98Vz</a></span><o:p></o:p></p>
          <p class="MsoNormal"><span style="font-size:11.0pt"
              lang="EN-US"> </span><o:p></o:p></p>
          <div
style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span style="color:black">De : </span></b><span
                style="color:black">Bogdan-Andrei Iancu <a
                  href="mailto:bogdan@opensips.org"
                  moz-do-not-send="true"><bogdan@opensips.org></a><br>
                <b>Date : </b>mercredi 20 mars 2024 à 14:29<br>
                <b>À : </b>OpenSIPS users mailling list <a
                  href="mailto:users@lists.opensips.org"
                  moz-do-not-send="true"><users@lists.opensips.org></a>,
                Alain Bieuzent <a href="mailto:alain.bieuzent@free.fr"
                  moz-do-not-send="true"><alain.bieuzent@free.fr></a><br>
                <b>Objet : </b>Re: [OpenSIPS-Users] OPENSIP 3.4
                send_reply and tight matching failed</span><o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
          </div>
          <p class="MsoNormal"><span
              style="font-family:"Courier New"">Hi,<br>
              <br>
              The script snippet has nothing to do with the matching -
              it is about a 200-ok ACK to be matched by the dialog
              module and the TO-tag does not match at all. <br>
              <br>
              The link to the trace expired, if you could repost.<br>
              <br>
              Regards,<br>
              <br>
              <br>
            </span><o:p></o:p></p>
          <pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
          <pre> <o:p></o:p></pre>
          <pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
          <pre>  <a href="https://www.opensips-solutions.com"
          moz-do-not-send="true" class="moz-txt-link-freetext">https://www.opensips-solutions.com</a><o:p></o:p></pre>
          <pre>  <a href="https://www.siphub.com" moz-do-not-send="true"
          class="moz-txt-link-freetext">https://www.siphub.com</a><o:p></o:p></pre>
          <div>
            <p class="MsoNormal">On 12.03.2024 14:57, Alain Bieuzent
              wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <p class="MsoNormal"><span style="font-size:11.0pt">Hi all,</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US">I am in the process of migrating my proxies
                from 3.3.9 to 3.4.4.</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US">In 3.4 I find myself with a fault when I
                try to rewrite a final cause.</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US">if (t_check_status("500"))</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US">         {</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US">                         
                send_reply(503,"Service Unavailable");</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US">                         </span><span
                style="font-size:11.0pt">exit;</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt">         
                }</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US">with 3.3 version, this code works
                perfectly, since 3.4 I have this error:</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US">WARNING:dialog:dlg_onroute: tight matching
                failed for ACK with callid='<a
href="mailto:67457c401e9ea52e2750100979253a7a@10.101.180.177:5060"
                  moz-do-not-send="true" class="moz-txt-link-freetext">67457c401e9ea52e2750100979253a7a@10.101.180.177:5060</a>'/52,
                ftag='as5328cea7'/10, ttag='b5a7-2a346bb9d510da893a
                ee7cda850584cb'/37 and direction=1</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US">WARNING:dialog:dlg_onroute: dialog
                identification elements are callid='<a
href="mailto:67457c401e9ea52e2750100979253a7a@10.101.180.177:5060"
                  moz-do-not-send="true" class="moz-txt-link-freetext">67457c401e9ea52e2750100979253a7a@10.101.180.177:5060</a>'/52,
                caller tag='as5328cea7'/10, callee
                tag='3919223738-770090972'/ 20</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US">Has anyone encountered this error before?</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US">Complete traces here : <a
                  href="https://www.transfernow.net/dl/20240312qvAFfIAL"
                  moz-do-not-send="true" class="moz-txt-link-freetext">https://www.transfernow.net/dl/20240312qvAFfIAL</a>.</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="font-size:11.0pt"
                lang="EN-US">Regards</span><o:p></o:p></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;mso-ligatures:none;mso-fareast-language:FR"><br>
                <br>
                <br>
              </span><o:p></o:p></p>
            <pre>_______________________________________________<o:p></o:p></pre>
            <pre>Users mailing list<o:p></o:p></pre>
            <pre><a href="mailto:Users@lists.opensips.org"
            moz-do-not-send="true" class="moz-txt-link-freetext">Users@lists.opensips.org</a><o:p></o:p></pre>
            <pre><a
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
            moz-do-not-send="true" class="moz-txt-link-freetext">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre>
          </blockquote>
          <p class="MsoNormal"><span
style="font-size:11.0pt;mso-ligatures:none;mso-fareast-language:FR"><br>
              <br>
              <br>
            </span><o:p></o:p></p>
        </blockquote>
        <p class="MsoNormal"><span
style="font-size:11.0pt;mso-ligatures:none;mso-fareast-language:FR"><br>
            <br>
            <o:p></o:p></span></p>
      </div>
    </blockquote>
    <br>
  </body>
</html>