<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>when you re-route to a new destination, can you try resetting the
      internal flag with:</p>
    <p>msg_iflag_reset("UAC_AUTH");</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 16.07.18 10:31, Yuriy Gorlichenko
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABSP_Vd4zPPfK_EK=8PNZka921PrW_F_7v+1LgWFrnLhdhmUPg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">Hi. I found some additional scenario when kamailio
        works incorrect with ACK Cseq after succesfull auth with
        uac_auth but unsuccesfull call:<br>
        <br>
        1.Caller via kamailio as proxy (Cseq 1)<br>
        2.Kamailio resends call to provider with Auth method (Cseq 1)<br>
        3. Provider answers 401/407 (Cseq 1)<br>
        4. Kamailio inrases Cseq and sends invite with credentians
        (dialog track_cseq_updates = 1, uac_auth()) (Cseq 2)<br>
        5. Provider says - 404. not found (Cseq 2)<br>
        6. Kamailio resends INVITE to another server (lets say VM). It
        contans not tracked yet Cseq (Cseq 1)<br>
        7. VM server says 200 (Cseq 1)<br>
        8. Kamailio resends 200 to the caller (Сseq 1)<br>
        9. Caller says ACK (Cseq 1)<br>
        10. Kamailio incrases CSeq of ACK and resends t VM server (Сseq
        2)<br>
        <br>
        So in this case kamialio tries to track Sceq because thining
        that this ACK belongs to the dialog that was made to the auth
        server<br>
        <br>
        So as I see here is a misunderstanding on the dialog module<br>
        Any suggestions how to avoid it or exclude resent INVITE from
        the dialog module tracking?<br>
        <br>
      </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>