[SIPForum-discussion] Cseq value for bye

AMIT ANAND amiit.anand at gmail.com
Tue Aug 24 07:16:32 UTC 2010


Hi,

Cseq is actually combination of number and message

for example 1 INVITE, 200 BYE etc,

"The CSeq header field serves as a way to identify and order

   transactions.  It consists of a sequence number and a method.  The
   method MUST match that of the request.  For non-REGISTER requests
   outside of a dialog, the sequence number value is arbitrary.  The
   sequence number value MUST be expressible as a 32-bit unsigned
   integer and MUST be less than 2**31.  As long as it follows the above
   guidelines, a client may use any mechanism it would like to select
   CSeq header field values."


So technically 1 INVITE is different then 1 BYE,
so a number can be same in  a dialog but the combination has to be unique


Cheers
Amit

Work hard Party Harder






On Mon, Aug 23, 2010 at 10:15 AM, Karthik Ramiya <Karthik_Ramiya at infosys.com
> wrote:

>  Hi,
>
>
>
>   It doesn’t matter even if the terminating party terminates the call with
> Cseq 1 becoz ‘BYE’ is going to be first request that the terminating party
> going to initiate. So it can have any non-negative integer value for Cseq(so
> it can be 1 or 2 etc). But if the originating party wants to terminate the
> call with ‘BYE’ , this is going to be the second request that it initiates
> and obviously Cseq should get incremented in that case.
>
>
>
> Cheers,
>
> Karthik
>
>
>
>
>
> *From:* discussion-bounces at sipforum.org [mailto:
> discussion-bounces at sipforum.org] *On Behalf Of *ashish khowal
> *Sent:* Saturday, August 21, 2010 3:19 PM
> *To:* Ankit Agarwal
> *Cc:* discussion at sipforum.org
>
> *Subject:* Re: [SIPForum-discussion] Cseq value for bye
>
>
>
> Hi,
>
> But if request for bye comes from terminating side.Then is it necessary
> that Cseq value must be greater than the previous Cseq of invite which is
> from originating side.
>
> ashish
>
> On Sat, Aug 21, 2010 at 2:11 PM, Ankit Agarwal <clickankit4u at gmail.com>
> wrote:
>
> Hi,
>
>
>
> "cseq should be increased for every new request".
>
> Bye is request sent to terminate session so cseq should be a greater value
> than in Invite(Previous Request.)
>
>
>
> Ankit Agarwal
>
>
>
>
>
>
>   On Fri, Aug 20, 2010 at 10:32 PM, ashish khowal <aashishkhowal at gmail.com>
> wrote:
>
>  Hi,
> I want to know the importance of cseq and rseq in sip.Like what should be
> the value of cseq when a dialog has been establish and  we want to send a
> Bye from Terminaing party, should it contain Cseq 1 for Bye or Cseq 2 for
> Bye.
>
> regards
> ashish
>
>   _______________________________________________
> This is the SIP Forum discussion mailing list
> TO UNSUBSCRIBE, or edit your delivery options, please visit
> http://sipforum.org/mailman/listinfo/discussion
> Post to the list at discussion at sipforum.org
>
>
>
>
>
> _______________________________________________
> This is the SIP Forum discussion mailing list
> TO UNSUBSCRIBE, or edit your delivery options, please visit
> http://sipforum.org/mailman/listinfo/discussion
> Post to the list at discussion at sipforum.org
>
>


-- 
Thanks
Amit Anand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sipforum.org/pipermail/discussion/attachments/20100824/e07df795/attachment-0002.html>


More information about the discussion mailing list