<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>you can also do authentication for requests within dialog. The
      default kamailio.cfg is doing auth only for initial requests
      because (at least in the past) there were devices not able to do
      auth for requests within dialog. You have to execute route(AUTH)
      for what requests you want to authenticate, being initial or
      within dialog -- it is your choice, the default kamailio.cfg is
      more like a starting point for what people need out there.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 01.07.18 13:26, <a class="moz-txt-link-abbreviated" href="mailto:yu@yu-boot.ru">yu@yu-boot.ru</a> wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:1530444399.373847460@f10.my.com">
      <p style="margin-top: 0px;" dir="ltr">Hello. Have a question on
        auth and default kamailio.cfg.</p>
      <p dir="ltr">Default behavior of kamailio on auth is:</p>
      <p dir="ltr">Auth initial requests, delete auth headers before
        forwarding to next hop.</p>
      <p dir="ltr">In-dialog requests are forwarded "as-is" so all auth
        related info is propagated to uplinks or just another Kami
        users.</p>
      <p dir="ltr">How should it be done correctly or "kamailio-way"? As
        for now, I just delete auth headers for all in-dialog requests,
        but I'm not sure it is correct.</p>
      <p dir="ltr">I looked how it works on softswitches like Yate.
        Registers and initial Invites are authenticated, ACK is not
        authenticated, but all other requests like reINVITE and BYE are.</p>
      <p dir="ltr">How is should be done?</p>
      <p dir="ltr">Thanks.</p>
      <div id="mail-app-auto-default-signature">
        <p dir="ltr">--<br>
          sent from myMail for Android</p>
      </div>
      <!--'"--><br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<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>
    <br>
    <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>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>