why we have CSeq: 1 INVITE and CSeq: 2 INVITE what is for request Who will give me the correct response
why we have CSeq: 1 INVITE and CSeq: 2 INVITE what is for request Who will give me the correct response some servers like cisco can invite just CSeq: 1 not need 2 and some servers need 1 and need 2
What is the way to make me distinguish if I need to invite 2 or not
CSeq or Command Sequence contains an integer and a method name. The CSeq number is incremented for each new dialog request and is a traditional sequence number.
Nothing fancy, just a sequence number incremented as you can see with CSEQ 1 INVITE
and CSEQ 2 INVITE
, if I assume you are receiving two INVITE on the same dialogue then just respond to the last CSEQ, in that case CSEQ 2 INVITE
.
Logically, it is just a retransmission, you do not have to answer to both only the last received one.