Sends a network service access point configuration buffer to the TX board and blocks the calling application while waiting for a response.
short isupNSapCfg ( U8 board, IsupNSapCfg *cfg, S16 spId)
Argument |
Description |
board |
TX board number. |
cfg |
Pointer to the IsupNSapCfg structure to send. Refer to isupInitNSapCfg for the structure definition. |
spId |
ISUP service access point. |
Return value |
Description |
ISUP_SUCCESS |
|
ISUP_BOARD |
board is out of range. |
ISUP_DRIVER |
Error occurred accessing the driver. |
ISUP_FAILED |
Task on the TX board returned a failure. |
ISUP_UNBOUND |
Application failed to call isupInitMgmtAPI prior to this call. |
An application must set the field values in the IsupNSapCfg structure before calling isupNSapCfg. Set the values in any of the following ways:
Call isupInitNSapCfg to set the fields to default values.
Set each field value from within the application.
Call isupInitNSapCfg and then override specific field values before passing the IsupNSapCfg structure to isupNSapCfg.
isupNSapCfg is typically called once for each configured network service access point.
S16 status;
U8 boardNum = 1;
IsupNSapCfg cfg;
S16 sapId = 1
/* Populate NSAP configuration structure cfg before calling isupNSapCfg */
if ((status = isupNSapCfg(boardNum, &cfg, sapId)) != ISUP_MGMT_SUCCESS)
{
printf( "Board %d NSAP %d Send Configuration Information failed: status = %d\n",
boardNum, sapId, status );
}
else
printf( “Successfully sent NSAP configuration information for SAP %d on board %d\n",
sapId, boardNum );
}