How about we look at this from another point-of-view.
If you are a UA, what you send depends on when you received a BYE.
1. if you receive a BYE and you hadn't sent a BYE yourself, you send an OK to the BYE
you <---BYE------ remote UA
----200----->
2. if you receive a BYE and you HAD sent a BYE yourself, you still send 200 OK
you ---BYE------> remote UA
<--BYE-------
----200----->
(Of course, you should also retransmit your BYE (upto the maximum number of
retries) until your BYE gets a final (>=200) response.)
3. if you receive a BYE and you HAD sent a BYE yourself and already got an OK
to your BYE, you would send a 481 because you would've closed this
transaction when you got the 200 to your BYE.
you ---BYE------> remote UA
<--200-------
<--BYE-------
---481------>
The true "crossed BYE" case is case 2 so you should send a 200
in that scenario.
Case 3 is another possible "crossed BYE" scenario because an intial
BYE from the remote UA could've got lost.
you---BYE------> remote UA
<--lost BYE
<--200-------
<--BYE-------
---481------>
So for "you", this is like case 3, but from the point of view of
the remote UA, it feels like case 2 (I hope this makes sense).
In either case, as long as you look it at it from your own point-of-view,
you can decide what response to send. Think only what state you are in (and
not the state of the other side).
> > I thought so, because the sender forgets the dialog
> > when it sends the BYE.
It should not forget the dialog when it sends the BYE.
It needs to remember it until it gets the final response.
Regards,
Attila
Attila Sipos
Software Engineer
<http://www.vegastream.com/>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Ranjit
> Avasarala
> Sent: 28 September 2004 09:50
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: RE: [Sip-implementors] crossed BYEs generate 481s or 200s
>
>
> Sreeram,
>
> what u r saying is wrong. Crossed BYEs do not generate
> 481. Plzz don't misguide the group by giving wrong
> answers.
>
> Ranjit
> --- [EMAIL PROTECTED] wrote:
>
> >
> > Troy-
> > Crossed BYEs generate 481.
> >
> > -Sreeram
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Troy
> > Cauble
> > Sent: Tuesday, September 28, 2004 2:48 AM
> > To: [EMAIL PROTECTED]
> > Subject: [Sip-implementors] crossed BYEs generate
> > 481s or 200s
> >
> >
> >
> > Should crossed BYEs generate 481s?
> >
> > I thought so, because the sender forgets the dialog
> > when it sends the BYE.
> >
> > But I ran into someone who thought it should be
> > 200s.
> >
> > -troy
> >
> > _______________________________________________
> > Sip-implementors mailing list
> > [EMAIL PROTECTED]
> >
> http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
> >
> >
> >
> > Confidentiality Notice
> >
> > The information contained in this electronic message
> > and any attachments to this message are intended
> > for the exclusive use of the addressee(s) and may
> > contain confidential or privileged information. If
> > you are not the intended recipient, please notify
> > the sender at Wipro or [EMAIL PROTECTED]
> > immediately
> > and destroy all copies of this message and any
> > attachments.
> >
> > _______________________________________________
> > Sip-implementors mailing list
> > [EMAIL PROTECTED]
> >
> http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
> >
>
>
> =====
> Regards
> Ranjit
>
>
>
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> _______________________________________________
> Sip-implementors mailing list
> [EMAIL PROTECTED]
> http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
>
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors