Initializes a SiCnStEvnt structure for transmitting a subsequent address message (SAM).
S16 TXISUPAPIFUNC ISUPInitSAM ( S16 switchType, SiCnStEvnt *event, U8 *subAddr, U8 subAddrLen)
Argument |
Description |
switchType |
One of the following switch type indicators: ST_BICC ST_ITUBLUE ST_ITUWHITE ST_Q767 |
event |
Pointer to the SiCnStEvnt structure to be initialized. |
subAddr |
Pointer to BCD subsequent address. |
subAddrLen |
Number of BCD digits in subsequent address. |
The fields of the SiCnStEvnt structure are initialized as described in the following table, based on the switchType parameter. Fields not described are not applicable to an SAM. This function is called in preparation for a call to ISUPConnectStatusReq.
ITU Blue Book, ITU White Book, and ITU Q.767 values
Field |
ITU Blue Book |
ITU White Book |
ITU Q.767 |
subNum |
Present |
Present |
Present |
oddEven |
from subAddrLen |
from subAddrLen |
from subAddrLen |
addrSig |
from subAddr |
from subAddr |
from subAddr |
Field |
BICC |
subNum |
Present |
oddEven |
from subAddrLen |
addrSig |
from subAddr |
<NMSBREAK>
U8 _sAddr[20];
U8 _sAddrLen = 0;
S16 switchType = ST_ANSI92;
SiCnStEvnt samEvnt;
memset(&samEvnt, 0, sizeof(SiCnStEvnt));
_sAddrLen = ISUPASCIItoBCD( _addr, _sAddr, 20 );
ISUPInitSAM( switchType, &samEvnt, _sAddr, _sAddrLen );