<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">OK, try to do a fix_nated_registrar()
      (nathelper module) before mid_registrar_save();<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>
OpenSIPS Bootcamp 5-16 Dec 2022, online
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/">https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
    <div class="moz-cite-prefix">On 11/14/22 5:30 PM, nutxase wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:Pr1D6UYzCtK5vzlbmeQbbDeZil7cFK70z49oAv1k5LIPBmLSzNRyWZztyd9YZu9qwDwPGLNPoVphu3YBx_zSWiUZFuN4YA7Qy1Et73MoGGk=@proton.me">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div style="font-family: Arial; font-size: 14px;">Hi Bogdan</div>
      <div style="font-family: Arial; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial; font-size: 14px;">Thanks for the
        response</div>
      <div style="font-family: Arial; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial; font-size: 14px;">this is what i
        see</div>
      <div style="font-family: Arial; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial; font-size: 14px;"><span>(opensips-cli):
          mi ul_dump </span>
        <div><span>{</span></div>
        <div><span>    "Domains": [</span></div>
        <div><span>        {</span></div>
        <div><span>            "name": "location",</span></div>
        <div><span>            "hash_size": 512,</span></div>
        <div><span>            "AORs": []</span></div>
        <div><span>        },</span></div>
        <div><span>        {</span></div>
        <div><span>            "name": "location p0 v",</span></div>
        <div><span>            "hash_size": 512,</span></div>
        <div><span>            "AORs": [</span></div>
        <div><span>                {</span></div>
        <div><span>                    "AOR": "<a target="_blank"
              rel="noreferrer nofollow noopener"
              href="mailto:200@sip-proxy.coltek.co.uk"
              moz-do-not-send="true">200@s</a>ip-proxy.nutxase.com",</span></div>
        <div><span>                    "Contacts": [</span></div>
        <div><span>                        {</span></div>
        <div><span>                            "Contact":
            <a class="moz-txt-link-rfc2396E" href="sip:6d13503u@ohw71q49582f.invalid;transport=wss">"sip:6d13503u@ohw71q49582f.invalid;transport=wss"</a>,</span></div>
        <div><span>                            "ContactID":
            "4067172675980629310",</span></div>
        <div><span>                            "Expires": 598,</span></div>
        <div><span>                            "Q": "",</span></div>
        <div><span>                            "Callid":
            "q71r14q930a64a9xecw7o1",</span></div>
        <div><span>                            "Cseq": 2,</span></div>
        <div><span>                            "User-agent": "Foreground
            App",</span></div>
        <div><span>                            "State": "CS_NEW",</span></div>
        <div><span>                            "Flags": 0,</span></div>
        <div><span>                            "Cflags": "",</span></div>
        <div><span>                            "Socket":
            <a class="moz-txt-link-rfc2396E" href="wss:1.2.3.4:8089">"wss:1.2.3.4:8089"</a>,</span></div>
        <div><span>                            "Methods": 5503,</span></div>
        <div><span>                            "SIP_instance":
            "<urn:uuid:d7501f60-7b98-47e3-8f4a-565b21fb2cfb>"</span></div>
        <div><span>                        }</span></div>
        <div><span>                    ]</span></div>
        <div><span>                }</span></div>
        <div><span>            ]</span></div>
        <div><span>        }</span></div>
        <div><span>    ]</span></div>
        <div><span>}</span></div>
        <span></span><br>
      </div>
      <div style="font-family: Arial; font-size: 14px;"><br>
      </div>
      <div class="protonmail_signature_block" style="font-family: Arial;
        font-size: 14px;">
        <div class="protonmail_signature_block-user
          protonmail_signature_block-empty"> </div>
        <div class="protonmail_signature_block-proton"> Sent with <a
            target="_blank" href="https://proton.me/" rel="noopener
            noreferrer" moz-do-not-send="true">Proton Mail</a> secure
          email. </div>
      </div>
      <div style="font-family: Arial; font-size: 14px;"><br>
      </div>
      <div class="protonmail_quote"> ------- Original Message -------<br>
        On Monday, November 14th, 2022 at 3:22 PM, Bogdan-Andrei Iancu
        <a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a> wrote:<br>
        <br>
        <blockquote class="protonmail_quote" type="cite"> <font
            face="monospace">Hi,<br>
            <br>
            Are you sure the lookup fails? as it looks to me the lookup
            succeeds, but the the r_relay() fails.<br>
            <br>
            If you do a `opensips-cli -x mi ul_dump
            <mid_registrar_domain>`, how is the registration
            record looking like ?<br>
            <br>
            Regards,<br>
          </font>
          <pre cols="72" class="moz-signature">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" class="moz-txt-link-freetext" rel="noreferrer nofollow noopener" target="_blank" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 5-16 Dec 2022, online
  <a href="https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/" class="moz-txt-link-freetext" rel="noreferrer nofollow noopener" target="_blank" moz-do-not-send="true">https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
          <div class="moz-cite-prefix">On 11/10/22 7:12 PM, nutxase via
            Users wrote:<br>
          </div>
          <blockquote type="cite">
            <div style="font-family: Arial; font-size: 14px;">Hi All</div>
            <div style="font-family: Arial; font-size: 14px;"><br>
            </div>
            <div style="font-family: Arial; font-size: 14px;">I have got
              my webrtc client working with mid_registrar to asterisk</div>
            <div style="font-family: Arial; font-size: 14px;">But when
              asterisk sends incoming calls to the phone it fails to
              lookup the location and i get</div>
            <div style="font-family: Arial; font-size: 14px;"><br>
            </div>
            <div style="font-family: Arial; font-size: 14px;"><span>
                CRITICAL:core:mk_proxy: could not resolve hostname:
                "zeid6muzjbdj.invalid"</span>
              <div><span>Nov 10 17:00:12 opensips01
                  /usr/sbin/opensips[19237]: ERROR:tm:uri2proxy: bad
                  host name in URI <a class="moz-txt-link-rfc2396E"
                    rel="noopener noreferrer" target="_blank"
                    moz-do-not-send="true"><sip:16500355@zeid6muzjbdj.invalid;transport=wss></a></span></div>
              <span></span><br>
            </div>
            <div style="font-family: Arial; font-size: 14px;">and in
              sngrep i see 476 unroutable detination.</div>
            <div style="font-family: Arial; font-size: 14px;"><br>
            </div>
            <div style="font-family: Arial; font-size: 14px;"><span>if
                (is_method("INVITE|MESSAGE") && $si == "1.2.3.4"
                && $sp == 5060) {</span>
              <div><span> xlog("looking up $ru!\n");</span></div>
              <div><span> xlog("</span></div>
              <div><span> if (!mid_registrar_lookup("location")) {</span></div>
              <div><span> t_reply(404, "Not Found $ru\n");</span></div>
              <div><span> exit;</span></div>
              <div><span> }</span></div>
              <div><br>
              </div>
              <div><span> t_relay();</span></div>
              <div><br>
              </div>
              <div><span> exit;</span></div>
              <div><span> }</span></div>
              <span></span><br>
            </div>
            <div style="font-family: Arial; font-size: 14px;"><br>
            </div>
            <div style="font-family: Arial; font-size: 14px;">With sip i
              dont have this issue only with wss</div>
            <div style="font-family: Arial; font-size: 14px;"><br>
            </div>
            <div style="font-family: Arial; font-size: 14px;">any ideas
              what to look at?</div>
            <div style="font-family: Arial; font-size: 14px;"><br>
            </div>
            <div style="font-family: Arial; font-size: 14px;"><br>
            </div>
            <div class="protonmail_signature_block" style="font-family:
              Arial; font-size: 14px;">
              <div class="protonmail_signature_block-user
                protonmail_signature_block-empty"> </div>
              <div class="protonmail_signature_block-proton"> Sent with
                <a target="_blank" href="https://proton.me/"
                  rel="noreferrer nofollow noopener"
                  moz-do-not-send="true">Proton Mail</a> secure email. </div>
            </div>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <pre class="moz-quote-pre">_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" class="moz-txt-link-abbreviated" rel="noreferrer nofollow noopener" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" class="moz-txt-link-freetext" rel="noreferrer nofollow noopener" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
          </blockquote>
          <br>
        </blockquote>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>