Initializes a TCAP general configuration buffer to default configuration values that can be passed to TCAPGenCfg.
S16 TCAPInitGenCfg ( TcapGenCfg *cfg)
Argument |
Description |
cfg |
Pointer to the TCAP general configuration structure to be initialized: typedef struct Tcap_Gen_Cfg Refer to the Details section for more information. |
Return value |
Description |
TCAP_SUCCESS |
|
TCAPM_NULLPTR |
Null pointer was specified for cfg. |
The application can change the default values within the specified range for any fields other than those denoted as internal or unused prior to calling TCAPGenCfg to send the configuration to the TCAP layer.
TcapGenCfg structure members not listed in the following table are either unused or for internal use only. These fields are set to correct values by TCAPInitGenCfg and must not be overridden by the application.
Default values for the TcapGenCfg structure that can be overridden by the calling application are listed in the following table:
Field |
Range |
Default value |
Description |
maxSaps |
1 - 64 |
4 |
Maximum number of TCAP user SAPs (subsystem number or protocol variant) that can be defined. |
maxDlgs |
1 - 32767 |
256 |
Maximum number of outgoing and incoming TCAP transactions that can be pending at one time. |
maxInvs |
1 - 32767 |
256 |
Maximum number of outgoing and incoming TCAP invoke operations that can be pending at one time. |
alarmLvl |
TCAP_ALARMLVL_DIS TCAP_ALARMLVL_DFLT TCAP_ALARMLVL_DEBUG TCAP_ALARMLVL_DETAIL |
TCAP_ALARMLVL_DFLT |
Level of alarms generated by the TCAP layer. TCAPAlarmControl provides information on alarm levels. |
minTidLen |
1 - 4 |
1 |
Minimum transaction ID length (ITU only). If an out of range value is specified, the value is forced to 1 without a reported error. |
haState |
ST_HAST_STARTING ST_HAST_STANDALONE ST_HAST_PRIMARY ST_HAST_BACKUP |
N/A |
Current TCAP layer state returned by TCAPGetGenCfg. It is ignored by TCAPGenCfg. |
mcState |
ST_MCST_ISOLATED ST_MCST_CONNECTED |
N/A |
Current TCAP layer state of communication with mated TCAP when deployed as a redundant pair. Returned by TCAPGetGenCfg. The layer state is ignored by TCAPGenCfg. |
traceData |
TCAP_BUFTRACE_OFF TCAP_BUFTRACE_ON |
TCAP_BUFTRACE_OFF |
Enables and disables tracing of TCAP packets to the ss7trace utility. |
memThresh1 |
1 - 99 |
20 |
Percentage of memory available to TCAP below which inbound and outbound congestion level 1 is triggered. |
memThresh2 |
1 - 99 |
15 |
Percentage of memory available to TCAP below which inbound and outbound congestion level 2 is triggered. |
memThresh3 |
1 - 99 |
10 |
Percentage of memory available to TCAP below which inbound and outbound congestion level 3 is triggered. |