<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi John,<br>
      <br>
      Assuming you do not do REGISTER relay (but you act as a
      registrar), you should handle the REGISTER requests (with or
      without to-tag) in the same way. IF they have a Route hdr , it may
      be because they do pre-loaded route (the Route points to your SIP
      server) to be sure the REGISTER gets to the registrar server.<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="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 07.06.2016 10:56, John Nash wrote:<br>
    </div>
    <blockquote
cite="mid:CAA4rGPyM+dpjiJavbW+hsakroYXBTR8XoghMTWO5ErGYDVemDQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">I am dealing with In-dialog requests using  
        <div><br>
        </div>
        <div>------------------------------------------------------------------------------------------------------<br>
          <div>
            <div>    if (has_totag() &amp;&amp; (is_domain_local("$rd")
              || $Ri== "127.0.0.1") &amp;&amp;
              is_method("INVITE|ACK|BYE|UPDATE"))</div>
            <div>    {</div>
            <div>        # sequential request within a dialog should</div>
            <div>        # take the path determined by record-routing</div>
            <div>        if (topology_hiding_match())</div>
          </div>
          <div>-----</div>
          <div>---------------------------------------------------------------------------------------------------------</div>
          <div><br>
          </div>
          <div>at the top of my script. After that I process initial
            requests, but I see some REGISTER messages with TO-Tag and
            "Route" header and they are being discarded by my script
            because Initial request cannot have Route header.</div>
          <div><br>
          </div>
          <div>Do i also need to pass REGISTER messages also through
            same block?...or i need to call loose_route after has_to_tag
            check.</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </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>