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

252 HP-UX C SIP Stack Programmers Guide
Subscription State Machine
Table 12-2 shows how the state changes after rejecting an UNSUBSCRIBE
request.
NOTIFICATION
OBJECTS
You create a notification object (notification) by calling the
RvSipSubsCreateNotify() function. By calling RvSipNotifySend(), a NOTIFY
request is sent.
An incoming NOTIFY request also creates a notification. A notification
terminates when the notify transaction terminates. Figure 12-5 illustrates a
typical NOTIFY flow.
Table 12-2 State Changes
State that Received
UNSUBSCRIBE
Request
State after Sending
Reject on
UNSUBSCRIBE Reason for Behavior
SUBS_ACTIVE SUBS_ACTIVE
SUBS_PENDING SUBS_PENDING
SUBS_REFRESH_RCVD SUBS_ACTIVE Refresh was rejected with 400
when UNSUBSCRIBE was
received.
SUBS_ACTIVATED 1. SUBS_ACTIVATED
2. SUBS_ACTIVE
No 2xx on NOTIFY
with
“active” as the Subscription-
State header value
was
received yet.
A 2xx on NOTIFY
with
“active” as the Subscription-
State header value
was
received while the state was
UBSUBS_RCVD.