<div dir="ltr"><div>Hello, <br></div><div>Let' me describe the scenario:</div><div><UE>---------><SEMS>-----------><ASTERISK><br></div><div>The UE tries to make calls, The first INVITE message is without an Authentication header. The Asterisk server returns 401 Unauthorized.</div><div>The UE sends again INVITE messages to the asterisk server. The second INVITE message has an Authentication header. Because both INVITE messages have the same CSeq, the asterisk server thinks this is a LOOP message and sends 401 Unautirozed messages again. </div><div>In both cases, the Sems set "CSeq: 10 INVITE" header, while the second the INVITE message is not re-invite message and the CSeq should be set incremental.<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 18, 2021 at 11:15 AM Juha Heinanen <<a href="mailto:jh@tutpro.com">jh@tutpro.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Mojtaba writes:<br>
<br>
> Yes, all other headers are supported. But I don't know why in the Invite<br>
> message, the value of CSeq is not changed, and all invite messages have 10<br>
> INVITE. This caused the asterisk server could not pass the Authentication<br>
> process.<br>
<br>
Are you saying that re-INVITEs have the same CSeq value as the intial<br>
INVITE?<br>
<br>
In initial INVITEs CSeq can have any value:<br>
<br>
   8.1.1.5 CSeq<br>
<br>
   For non-REGISTER requests<br>
   outside of a dialog, the sequence number value is arbitrary.<br>
<br>
-- Juha<br>
<br>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">--Mojtaba Esfandiari.S</div>