A cleaner approach would be to send CANCEL first for the re-INVITE transaction and then a BYE to terminate the dialog.

Paul Kyzivat <[EMAIL PROTECTED]> wrote:


David Stuart wrote:
> So, just to be more explicit: the case is where the following happens
>
> A ---> B (INVITE)
> A <--- B (TRYING)
> A <--- B (RINGING)
> A <--- B (OK)
> A ---> B (ACK)
> A <--> B (RTP)
> A ---> B (re-INVITE)
> A <--- B (TRYING)
> A ---> B (???) Cancel, or Bye?

If you want to terminate the entire call, then I think you can send a
BYE. If you want to terminate the reinvite and thus reinstate the call
as it was before the reinvite, then you must send a CANCEL.

AFAIK, you can send a BYE within the dialog any time after the initial
ACK has been sent.

Paul

>
> [EMAIL PROTECTED] wrote:
>
>> Hi David,
>>
>> If you want to do a re-invite for the case where You did not ge! t the
>> final response (2xx) but only provisional response
>> than you should send "CANCEL" .
>>
>> Regards,
>> Sreeram.
>>
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of David
>> Stuart
>> Sent: Wednesday, June 16, 2004 8:31 PM
>> To: [EMAIL PROTECTED]
>> Subject: [Sip-implementors] BYE, or CANCEL?
>>
>>
>> Hi All,
>>
>> What is the correct thing to do on a re-INVITE. If we want to
>> terminate the call but we have not yet received the final 2xx response
>> for the re-INVITE, do we send a BYE or a CANCEL?
>>
>> I am thinking BYE (since the re-INVITE is within a dialog), but am not
>> sure.
>>
>>
>>
>

_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors


Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

Reply via email to