<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi Sergey,<br>
      <br>
      I would strongly suggest to use dialog module + topo hidingĀ  to
      get rid of this problem.<br>
      <br>
      Best 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>
OpenSIPS eBootcamp
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/Training/Bootcamp">https://www.opensips.org/Training/Bootcamp</a></pre>
    <div class="moz-cite-prefix">On 1/28/22 2:24 PM, Sergey Pisanko
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CANbQ6FLEV9+qQw9ObuWgqpyWOC89D9VHG2CmUtiT4w0_GqqzRg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr"><br>
        Hello.<br>
        <br>
        I have an issue with incorrect final ACK message from pbx which
        communicates to opensips. PBX sents to opensips proxy's r-uri
        instead of UA's one, though it receives correct callee's contact
        value in previous 200 OK. The PBX seems to have a problem with
        SIP protocol realization and I would like to solve this issue on
        Opensips side rewriting r-uri with correct one. What is the best
        way to do this? As long as what comes to my mind is to use
        avpops module with it's function "avp_db_query" in order to get
        the UA's contact from database and store it to avp and then to
        pass this avp as a r-uri. But may be there is a better solution?
        And are the similar manipulations bad practic carrying potential
        risks?<br>
        <br>
        Best Regards,<br>
        Sergey Pysanko.<br>
        <br>
        <br>
        <div id="mt-signature">
          <table style="user-select: none;" cellspacing="0"
            cellpadding="8" border="0">
            <tbody>
              <tr>
                <td> <a id="signatureLink-logo"
href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&"
                    class="" style="text-decoration:none"
                    moz-do-not-send="true"> <img
src="https://s3.amazonaws.com/mailtrack-signature/sender-notified-72.gif"
                      alt="Mailtrack" class="" moz-do-not-send="true"
                      width="32" height="32"> </a> </td>
                <td> <span style="color:#777">Sender notified by</span>
                  <br>
                  <a id="signatureLink-text"
href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&"
                    class="mt-install" style="color:#4374f7"
                    moz-do-not-send="true">Mailtrack</a> </td>
                <td><span style="color:transparent;font-size:0">01/28/22,
                    02:22:52 PM</span></td>
                <td> <br>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
        <img class="mailtrack-img" alt="" style="display:flex"
src="https://mailtrack.io/trace/mail/7c0e66d3669e333fb0577715ea7f74eb993315d8.png?u=6916461"
          moz-do-not-send="true" width="0" height="0"></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>