Resumes a suspended connection (cancels timer T2) and sends a resume message to the far exchange.
DWORD ISUPResumeReq ( CTAHD ctahd, SuId suId, SiInstId suInstId, SiInstId spInstId, CirId circuit, SiResmEvnt *resmEvnt)
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 |
Circuit with which this message is associated. |
resmEvnt |
Pointer to the caller's resume event structure containing all parameters (IEs) 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.
<NMSBREAK>
DWORD status;
SiResmEvnt resmEvnt;
IsupRcvInfoBlk rcvInfo;
S16 switchType = ST_ITUWHITE;
CTAHD ctahd = Valid CTA Handle;
status = ISUPRetrieveMessage(ctahd, &rcvEvent, &rcvInfo, 1);
if (status == ISUP_NOMSG)
{
fprintf(stderr, "ISUPRetrieveMessage() did not get a message, probably a
congestion event \n");
return(ISUP_SUCCESS);
}
if (status != ISUP_SUCCESS)
{
fprintf(stderr, "ISUPRetrieveMessage() failed, returned %d\n", status);
return(status);
}
...
...
ISUPInitRES( switchType, &resmEvnt);
status = ISUPResumeReq( ctahd, rcvInfo.suId, rcvInfo.suInstId, rcvInfo.spInstId,
rcvInfo.circuit, &resmEvnt);
if(status != ISUP_SUCCESS)
printf("ISUPResumeReq() failed, status = %d\n", status);
else
printf("RES request sent for circuit %ld\n", circuit);