From: [EMAIL PROTECTED]

   I have a race condition scenario. Can someone help me know what is the 
   best way to solve this issue.

As Jeroen says, the BYE terminates only the INVITE usage, and not the
subscription usage created by the REFER.

But don't feel bad, a very popular brand of SIP phone makes the same
mistake.

   ======================================================
   UA1        SIP proxy(stateful)        UA2

   ----REFER----->
                          -------REFER----->

                          <---202 Accepted--
   <---202 Accepted-
                          <-----NOTIFY------
                          <-----BYE---------

   <---NOTIFY------
                          ------200 OK (BYE)->
   <---BYE---------

   ----200 OK BYE->                 
              <-----NOTIFY------
              <-----NOTIFY------
              <-----NOTIFY------

Even worse, even if UA1 makes the mistake of terminating the entire
dialog when it sees the BYE, when UA1 receives the resend of NOTIFY,
it should respond 481.  So the fact that UA1 is not responding to the
NOTIFY is a double-bug.

Dale
_______________________________________________
Sip-implementors mailing list
Sip-implementors@cs.columbia.edu
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to