Event Subscription and NotificationThe SIP specification has been extended to support a general mechanism allowing subscription to asynchronous events. Such evens can include SIP proxy statistics changes, presence information, session changes and so on. The mechanism is used mainly to convey information on presence (willingness to communicate) of users. The picture below shows the basic message flow. A user agent interested in event notification sends a SUBSCRIBE message to a SIP server. The SUBSCRIBE message establishes a dialogi and is immediately replied by the server using 200 OK response. At this point the dialog is established. The server sends a NOTIFY request to the user every time the event to which the user subscribed changes. NOTIFY messages are sent within the dialog established by the SUBSCRIBE.
Note that the first NOTIFY message in the call flow is sent regardless of any event that triggers notifications.
Subscriptions--as well as registrations--have limited lifespan and therefore must be periodically refreshed. |
Navigation |