<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>If I understood the scenario, the Path header is not useful --
      that's for the case when there is a proxy between UA and registrar
      server. In this scenario seems to be the UA using alternate
      registrars, either by DNS or configuration.</p>
    <p>A solution is this case is to sync the two Kamailios A and B, so
      they accept the auth challenges generated by the other one. See:<br>
    </p>
    <p>  *
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/auth.html#auth.p.secret">https://www.kamailio.org/docs/modules/stable/modules/auth.html#auth.p.secret</a></p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 13.07.21 07:56, Alex Balashov wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:F5B25930-D3C6-4566-9242-EA21D5907BB4@evaristesys.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      Path header == Record-Route for REGISTERs.<br>
      <br>
      <div dir="ltr">—
        <div>Sent from mobile, with due apologies for brevity and
          errors.</div>
      </div>
      <div dir="ltr"><br>
        <blockquote type="cite">On Jul 13, 2021, at 1:22 AM, H Yavari
          <a class="moz-txt-link-rfc2396E" href="mailto:hyavari@rocketmail.com"><hyavari@rocketmail.com></a> wrote:<br>
          <br>
        </blockquote>
      </div>
      <blockquote type="cite">
        <div dir="ltr">
          <div class="yahoo-style-wrap" style="font-family:Helvetica
            Neue, Helvetica, Arial, sans-serif;font-size:13px;">
            <div dir="ltr" data-setdir="false">Hi to all,</div>
            <div dir="ltr" data-setdir="false"><br>
            </div>
            <div dir="ltr" data-setdir="false">In a scenario, we need to
              change the destination of users' registration requests
              when they send the first 'Register' to Kamailio-A and it
              replies 401 to the user, next time the user sends
              'Register' to Kamailio-B.</div>
            <div dir="ltr" data-setdir="false"><br>
            </div>
            <div dir="ltr" data-setdir="false">User------Register------->
              Kamailio-A</div>
            <div dir="ltr" data-setdir="false"><br>
            </div>
            <div dir="ltr" data-setdir="false">User<-----401--------------Kamailio-A</div>
            <div dir="ltr" data-setdir="false"><br>
            </div>
            <div dir="ltr" data-setdir="false">User-------Register-------->
              Kamailio-B</div>
            <div dir="ltr" data-setdir="false"><br>
            </div>
            <div dir="ltr" data-setdir="false"><br>
            </div>
            <div dir="ltr" data-setdir="false">RFC says we can't use the
              Record-Route for register because it doesn't create a
              dialog.</div>
            <div dir="ltr" data-setdir="false">Is there any option,
              header that Kamailio-A puts in the 401, and after that
              users send register to the Kamailio-B?</div>
            <div dir="ltr" data-setdir="false"><br>
            </div>
            <div dir="ltr" data-setdir="false">Thank you.</div>
            <div dir="ltr" data-setdir="false">BR,</div>
            <div dir="ltr" data-setdir="false">Hossein</div>
          </div>
          <span>__________________________________________________________</span><br>
          <span>Kamailio - Users Mailing List - Non Commercial
            Discussions</span><br>
          <span>  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a></span><br>
          <span>Important: keep the mailing list in the recipients, do
            not reply only to the sender!</span><br>
          <span>Edit mailing list options or unsubscribe:</span><br>
          <span>  *
            <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></span><br>
        </div>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
  </body>
</html>