Sends a user service access point configuration buffer to the TX board and blocks the calling application while waiting for a response.
short isupUSapCfg ( U8 board, IsupUSapCfg *cfg, U16 sapId)
Argument |
Description |
board |
TX board number. |
cfg |
Pointer to the IsupUSapCfg structure to send. Refer to isupInitUSapCfg for the structure definition. |
sapId |
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 IsupUSapCfg structure before calling isupUSapCfg. Set the values in any of the following ways:
Call isupInitUSapCfg to set the fields to default values.
Set each field value from within the application.
Call isupInitUSapCfg and then override specific field values before passing the IsupUSapCfg structure to isupUSapCfg.
isupUSapCfg is typically called once for each configured user service access point.
S16 status;
U8 boardNum = 1;
IsupUSapCfg cfg;
S16 sapId = 1;
/* Populate USAP configuration structure cfg before calling isupUSapCfg */
if ((status = isupUSapCfg(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 USAP configuration information for SAP %d on
board %d\n", sapId, boardNum );
}