HP-UX C SIP Stack Programmer's Guide (Novembery 2007)
120 HP-UX C SIP Stack Programmer’s Guide
Using Transactions
USING
T
RANSACTIONS
The following sections present various ways of using transactions accompanied
by code samples. These sections include:
Registering Application Callbacks
Exchanging Handles with the Application
Sending a Request
Using the Outbound Message Mechanism
Transaction Merging Support
REGISTERING
APPLICATION
CALLBACKS
To register an application callback, you must first define the callback according
to the prototype. The following code demonstrates an implementation of the
RvSipTransactionCreatedEv() and RvSipTransactionStateChangedEv() callback
functions.
Sample Code
The following sample code demonstrates an implementation of the
RvSipTransactionCreatedEv() callback function. In this sample, the application
indicates that it wishes to handle only the OPTIONS request. This means that
other requests will be handled automatically by the SIP Stack.