Initializes a SiFacEvnt structure for transmitting a facility information message (FAI).
S16 TXISUPAPIFUNC ISUPInitFAI ( S16 switchType, SiFacEvnt *event)
Argument |
Description |
switchType |
Switch type indicator that must be set to ST_ANS88. |
event |
Pointer to the SiFacEvnt structure to be initialized. |
The fields in the SiFacEvnt structure are initialized as described in the following table, based on the switchType parameter. Fields not described are not applicable to an FAI. This function is called in preparation for a call to ISUPFacilityReq.
Field |
ANSI 88 |
facInd |
FI_BUSYFREE |
facInfInd |
|
calldPtyFreeInd |
CDPTY_FREE |
callgPtyAnsInd |
NOCGPTYANS |
facReqEnqInd |
NOENQUIRY |
facReqActInd |
FACREQNOTACTIVE |
cdPtyNum |
NOT_PRESENT |
cgPtyNum |
NOT_PRESENT |
callRef |
NOT_PRESENT |
S16 switchType=ST_ANS88;
SiAllSdus sendEvent;
ISUPInitFAI(switchType, &sendEvent.m.SiFacEvnt);