From: Marco Ambu <[EMAIL PROTECTED]> My problem is to calculate the expiration time of a subscription when sending subscribe. Can the two values (the one in the response and the one in the notify) be different?
It doesn't matter. Since the expiration *time* as determined by the subscriber is always "current-time + reported-subscription-duration", delays in the network can cause the subscriber to see different expiration times from different messages even if the notifier is perfectly accurate. However, the calculated expiration times should always be close, within a few seconds at most. That much slop should not affect your subscription-refresh algorithm significantly, which should be refreshing the subscription well before it expires. Does the last message received win in determining expiration time? That's the method many agents use. In any case, if the subscription expires when the subscriber does not expect it to, the notifier is required to send a final NOTIFY saying so, and the subscriber can then resubscribe. Dale _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
