<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#42392c" bgcolor="#ffffff">
    Hello Liviu,<br>
    We use topology hiding edge proxy for end point.<br>
    Here are example <br>
    of contact header <br>
    <br>
    Contact: <a class="moz-txt-link-rfc2396E" href="sip:112%40domain.com@10.30.100.61:5060"><sip:112%40domain.com@10.30.100.61:5060></a><br>
    <br>
    that call is inbound from PBX  to opensips and opensips forward to
    end point.<br>
    <br>
    <br>
                   
    if(is_method("INVITE|UPDATE|ACK|BYE|CANCEL|NOTIFY|INFO|OPTIONS")
    && $rU=~"%40") {<br>
                            xlog("[RELAY] [$rm] testing original
    [$ru]\n");<br>
                            route(CONTACT_LOOKUP);<br>
                    # We want exclude ACK rewrite toward Bria Push
    Server<br>
                    } else if(!isflagset("FLAG_BRIA_PUSH")) {<br>
                            xlog("[RELAY] [$rm] didn't match R-URI
    schema [$ru] correcting\n");<br>
                            $ru = "sip:" + $tU + "%40" + $td + "@" +
    $td;<br>
                            route(CONTACT_LOOKUP);<br>
                    }<br>
    <br>
    <br>
    volga629 <br>
    <br>
    <div class="moz-cite-prefix">On 3/24/21 5:04 AM, Liviu Chircu wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:b7dee093-2c3a-10e1-5fe3-7b2042664aa5@opensips.org">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="moz-cite-prefix">On 24.03.2021 05:04, volga629 via
        Users wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:913584ce-6b5d-6b7b-461f-15b4dedcf4f2@skillsearch.ca"><font
          size="+1"><font face="Cantarell">But then arrive the ACK and
            that where start the problems lookup  only find first
            contact and not second.</font></font></blockquote>
      <p><font face="monospace">Hi Volga,</font></p>
      <p><font face="monospace">So you're doing a lookup() on the ACK
          Request-URI?  Typically, the ACK R-URI will contain a contact
          header, which is not meant to be searchable.  I'm surprised
          you even get 1 result, I would expect such a lookup() to
          return -1.</font></p>
      <p><font face="monospace">Can you explain what you are trying to
          achieve?  Why not just route the ACK using loose_route(), just
          like all other mid-dialog requests, and be done with it?<br>
        </font></p>
      <pre class="moz-signature" cols="72">-- 
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu" moz-do-not-send="true">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" moz-do-not-send="true">www.opensips-solutions.com</a></pre>
    </blockquote>
    <br>
  </body>
</html>