<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Peter,<br>
      <br>
      To doublecheck, do this:<br>
      <br>
      * before calling the is_contact_registered(), use xlog() to print
      the contact you are testing (use $ct).<br>
      <br>
      * before running the test, use the ul_show_contact MI function [1]
      to print the in-memory contacts for the desired AOR.<br>
      <br>
      <br>
      [1]
<a class="moz-txt-link-freetext" href="https://opensips.org/html/docs/modules/2.4.x/usrloc.html#mi_ul_show_contact">https://opensips.org/html/docs/modules/2.4.x/usrloc.html#mi_ul_show_contact</a><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="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
    <div class="moz-cite-prefix">On 08/16/2019 06:38 PM, Peter Pulham
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAA6ie1D84QV1kFz-bUrLPXC5YmoktouoGqFnuysbnZ_047fYPg@mail.gmail.com">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I am using mid_registrar to save registrations to the
          location table.</div>
        <div><br>
        </div>
        <div>If I use is_registered - everything works as expected. So
          AOR matching is working.</div>
        <div><br>
        </div>
        <div>However, when I use is_contact_registered - it returns
          false.</div>
        <div><br>
        </div>
        <div>I have checked the contact header in the request against
          the contact value of the AOR in the db and they match (the
          request has a display name but I am presuming only the uri is
          checked.</div>
        <div><br>
        </div>
        <div>The endpoint is behind NAT, but the contacts match in the
          db and request. Can some explain what is actually checked when
          using is_contact_registered?</div>
        <div><br>
        </div>
        <div>Many thanks</div>
      </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>