SIP API Developer's Guide

Initializing the SIP Stack

The SIP stack must be initialized before performing any other functions. This section discusses the initialization parameters in some detail. The initialization structure is given by the following structure:

typedef struct sip_stack_init_s {
	        int                     sip_version;
	        uint32_t                sip_stack_flags;
	        sip_io_pointers_t       *sip_io_pointers;
	        sip_ulp_pointers_t      *sip_ulp_pointers;
	        sip_header_function_t   *sip_function_table;
	}sip_stack_init_t;
sip_version

This variable must be set to SIP_STACK_VERSION

sip_stack_flags

If the application wants the SIP stack to maintain dialogs, this flag must be set to SIP_STACK_DIALOGS, otherwise this must be set to 0. If SIP_STACK_DIALOGS is not set, the stack does not deal with dialogs at all.