HP-UX C SIP Stack Programmer's Guide (Novembery 2007)
394 HP-UX C SIP Stack Programmer’s Guide
Configuration Parameters
The following rules apply to parameters of the RvSipStackCfg structure:
1. If you set a parameter from group A to –1, the SIP Stack will
use a default hard coded value. For example, maxCallLegs will
be set to 10.
2. If you set a parameter from group B to –1, the SIP Stack will
calculate the value of this parameter using the values of other
parameters.
3. If you set a parameter from group A to an invalid value, rule 1
will apply.
4. If you set a parameter from group B to an invalid value, rule 2
will apply.
The RvSipStackInitCfg() function can help you to initialize the configuration
structure and you should call it before you construct the stack.
The function performs the following:
1. Sets the default hard coded value to parameters of group A.
2. Sets –1 to parameters of group B.
You can then change the values of the group A parameters and the rest of the
parameters will be changed accordingly. The RvSipStackCfg is an INOUT
parameter of the RvSipStackConstruct function. The final calculated
configuration values that the SIP Stack will use are set back in the structure by
the SIP Stack.
CONFIGURATION
P
ARAMETERS
The SIP Stack configuration parameters and default values are as follows:
STACK OBJECT
ALLOCATION
maxCallLegs
The maximum number of call-legs the SIP Stack allocates. You should set this
value to the maximum number of calls you expect the SIP Stack to handle
simultaneously.
Default Value: 10
Remarks: Group A parameter
maxTransactions
The maximum number of transactions the SIP Stack allocates. You should set
this value to the maximum number of transactions you expect the SIP Stack to
handle simultaneously.
Default Value: –1