Sends user-to-user information associated with an established connection to the far exchange.
DWORD ISUPDataReq ( CTAHD ctahd, SuId suId, SiInstId suInstId, SiInstId spInstId, CirId circuit, SiInfoEvnt *infoEvnt)
Argument |
Description |
ctahd |
Natural Access handle returned by ctaCreateContext. |
suId |
ISUP service access point. |
suInstId |
Service user instance ID. |
spInstId |
Service provider instance ID. |
circuit |
The circuit with which this message is associated. |
infoEvnt |
Pointer to the caller's information event structure containing all parameters (IEs) and user-to-user data included in the message to the far exchange. |
Return value |
Description |
ISUP_SUCCESS |
|
CTAERR_BAD_ARGUMENT |
One or more arguments are invalid. |
CTAERR_DRIVER_SEND_FAILED |
Error occurred accessing the TX driver. |
CTAERR_INVALID_CTAHD |
Natural Access handle is invalid. |
The value specified in the suInstId field is passed to all subsequent events associated with this connection.
The value for spInstId must be the spInstId value that was received from the ISUP layer in the connect indication event.
#define SAP_ID 0
CTAHD FstCtaHd = Valid CTA Handle;
DWORD status;
SiInstId suInstId = 0;
SiInstId spInstId = 0;
SuId suId = SAP_ID;
CirId circuit = 2;
SiAllSdus sendBuffer;
status = = ISUPDataReq( FstCtaHd, suId, suInstId, spInstId, circuit,
sendBuffer.m.siInfoEvnt );
if( status != ISUP_SUCCESS )
{
printf( "ERROR: ISUPDataReq( circuit %d ) failed [%d]", circuit, status );
return( -1 );
}