Hello, Let' me describe the scenario: <UE>---------><SEMS>-----------><ASTERISK> The UE tries to make calls, The first INVITE message is without an Authentication header. The Asterisk server returns 401 Unauthorized. 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. 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.
On Sat, Dec 18, 2021 at 11:15 AM Juha Heinanen <[email protected]> wrote: > Mojtaba writes: > > > Yes, all other headers are supported. But I don't know why in the Invite > > message, the value of CSeq is not changed, and all invite messages have > 10 > > INVITE. This caused the asterisk server could not pass the Authentication > > process. > > Are you saying that re-INVITEs have the same CSeq value as the intial > INVITE? > > In initial INVITEs CSeq can have any value: > > 8.1.1.5 CSeq > > For non-REGISTER requests > outside of a dialog, the sequence number value is arbitrary. > > -- Juha > > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > * [email protected] > Important: keep the mailing list in the recipients, do not reply only to > the sender! > Edit mailing list options or unsubscribe: > * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- --Mojtaba Esfandiari.S
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions * [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
