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

Creating an Application 33
4
CREATING AN APPLICATION
INTRODUCTION This chapter describes the basic code necessary to write an application using the
SIP Stack, including:
Initialization
Event Processing
Destruction
Configuration
Getting Module Handles
INITIALIZATION Before performing any SIP-related activity, you must initialize the SIP Stack.
The SIP Stack Manager API function, RvSipStackConstruct(), performs
SIP Stack initialization. RvSipStackConstruct() receives the following
parameters:
cfgStructSize—input parameter. The size of the configuration
structure.
RvSipStackCfg—input/output parameter. Set the parameters in
the RvSipStackCfg structure with your configuration values.
You can use RvSipStackInitCfg() to initialize the configuration
structure with the SIP Stack default values.
RvSipStackHandle—output parameter. You should supply this
parameter when working with the Stack Manager API
functions.
RvSipStackConstruct() performs the following:
Constructs the layers of the SIP Stack.