On Thu, 2012-07-05 at 23:59 +0300, Jānis Rukšāns wrote:
> What is the recommended behaviour if the subscription is about to expire
> but the subscriber does not want to extend the subscription?

It's not clear to me exactly which process's behavior you are
considering, and what aspect of the process's behavior you are
interested in.  I think you are considering the subscriber's behavior.

Since the subscriber knows when the subscription is due to expire, and
knows that the notifier will send no further notifications after that
point, the subscriber knows exactly when the subscription expires, and
after that point, not to expect any more NOTIFYs.

If the notifier behaves correctly and there are no network problems, the
subscriber should receive a NOTIFY with "Subscription-State:
terminated".  But if there are network problems, that NOTIFY may not
arrive.  Nonetheless, the subscriber knows that the subscription has
expired.  The subscriber should certainly not assume that the
subscription is continuing just because it has not received the
terminating NOTIFY.

The notifier can send NOTIFY with "Subscription-State: termianted" at
any time, and the subscriber should take appropriate action if it wants
a continuing subscription.

As you note, the subscriber can send a SUBSCRIBE with "Expires: 0" to
terminate the subscription early.  But it may choose not to.

Dale


_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to