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

236 HP-UX C SIP Stack Programmers Guide
Subscription API
As in a call-leg, you can either set the Call-ID of the dialog, or the SIP Stack
will generate the Call-ID. The dialog automatically handles the CSeq, which is
increased by one for every outgoing request.
Note You must not use the Call-leg Control API with the dialog handle if the
subscription was created independently (not related to a connected call-leg).
Received Message
The last SUBSCRIBE message (Request or Response) that was received by the
subscription.
You can get this message only in the context of the subscription state changed
callback function when the new state indicates that the subscription received a
new message.
Outbound Message
The SUBSCRIBE message (Request or Response) that the subscription is going
to send.
You can call this function before you call the Subscription Control API
functions that send a message (such as RvSipSubsSubscribe()). You should use
this function to add headers to the message before it is sent.
Note The outbound message you receive is not complete. In some cases it might
even be empty.
Application Subscription Handle
The handle to the application subscriptions.
Current Local Address
The local address that is used by a subscription transaction.
Stack Instance
The handle to the Stack instance to which this subscription belongs.