<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hey Alexey,<br>
    <br>
    From your screenshots, it's not only the BYE but also the ACK that
    bypasses your proxy (both of which being sequential requests).  To
    get your proxy in the path of sequential reqs, you need to either
    (1) call record_route, or (2) use topology hiding module.  The UAC
    otherwise doesn't know about your proxy, as the 200 won't contain
    any Record-Route headers to build the route set for sequential reqs
    nor will the 200 contain a URI referencing your proxy in the Contact
    header.<br>
    <br>
    Thanks,<br>
    John Burke<br>
    <br>
    <div class="moz-cite-prefix">On 9/1/21 6:48 AM, Alexey Kazantsev via
      Users wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1630496881.789385992@f535.i.mail.ru">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div>Hi list,</div>
      <div> </div>
      <div>feeling shamefully but still can not fix the problem, trying
        different configurations.</div>
      <div> </div>
      <div>I’m setting drouting (INVITEs are routed well).</div>
      <div>But BYEs from UAC go directly to dr_gateway, not through
        OpenSIPS.</div>
      <div> </div>
      <div>I understand that this all is about in-dialog request, having
        to_tag, loose_route.</div>
      <div>I compared my config with config files of previously
        configured servers (not for drouting)</div>
      <div>which work well (I tested BYE routing).</div>
      <div> </div>
      <div>But still can not fix this issue.</div>
      <div> </div>
      <div>Here’re 2 screenshots of the same call, captured on UAC:</div>
      <div>[1] demonstrating INVITE from UAC,</div>
      <div>[2] demonstrating BYE from UAC (which goes directly,
        bypassing OpenSIPS, and I need to fix this behaviour).</div>
      <div> </div>
      <div>[1] <a class="moz-txt-link-freetext" href="https://ibb.co/NNNvHhM">https://ibb.co/NNNvHhM</a><br>
        [2] <a class="moz-txt-link-freetext" href="https://ibb.co/bKd4c0r">https://ibb.co/bKd4c0r</a></div>
      <div> </div>
      <div>What should I pay attention to, to route BYE requests from
        UAC via OpenSIPS?</div>
      <div> </div>
      <div data-signature-widget="container">
        <div data-signature-widget="content">
          <div>-----------------------------------------------<br>
            <span style="font-size: 15px;">BR, Alexey</span><br
              style="font-size: 15px;">
            <span style="font-size: 15px;"><a class="moz-txt-link-freetext" href="http://alexeyka.zantsev.com/">http://alexeyka.zantsev.com/</a></span></div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>