HP-UX C SIP Stack Programmer's Guide (Novembery 2007)

254 HP-UX C SIP Stack Programmers Guide
Subscription State Machine
Figure 12-6 NOTIFY Request Failure
NOTIFY STATUS Notify status represents the status of the notification. The RvSipSubsNotifyEv()
callback reports the notification status and status reason.
The notification associates with the following statuses:
RVSIP_SUBS_NOTIFY_STATUS_REQUEST_RCVD
Upon receipt of a NOTIFY request by a subscriber subscription, the notification
informs the REQUEST_RCVD status. At this stage, the application must decide
whether to accept or reject the NOTIFY using the Subscription Notify API.
RVSIP_SUBS_NOTIFY_STATUS_REDIRECTED
Upon receipt of a 3xx response to a NOTIFY request, the notification informs
the REDIRECTED status. At this stage, the application may get needed
information from the 3xx message. After this stage, the notification is
terminated and informs the TERMINATED status.
Subscriber
Application
Subscriber
Stack
Notifier
Stack
Notifier
Application
NOTIFY
503
Notify Send
NotifyEv(MSG_SEND_FAILURE)
NotifyEv(TERMINATED)
Create Notify
NotifyEv(TERMINATED)
DNS Continue
DNS reSend
NotifyEv(REQ_RCVD)
Notify Accept
200
NotifyEv(2xx_RCVD)
NOTIFY
NotifyCreatedEv()