Sends a request to retrieve the statistics for a given network service access point and blocks the calling application while waiting for a response. This function also lets you control whether statistics counters are reset after function execution.
short isupNSapStats ( U8 board, S16 sapID, IsupNSapStats *stats u8 reset)
Argument |
Description |
board |
TX board number. |
sapId |
ISUP service access point. |
stats |
Pointer to the IsupNSapStats structure where the requested statistics information is returned. For information, see the Details in isupNSapStats. |
reset |
Indicates whether to reset the statistics counters after function execution 0 = Reset the statistics counters to zeroes. 1 = Do not reset the statistics counters. |
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. |
U8 boardNum = 1;
S16 sapId = 1;
IsupNSapStats sts;
U8 resetStats=1;
S16 status;
if ((status = isupNSapStatsEx(boardNum, sapId, &sts, resetStats)) != ISUP_MGMT_SUCCESS)
{
printf( "Board %d NSAP %d Statistics Request failed: status = %d\n",
boardNum, sapId, resetStats, status );
}
else
printf( “Successfully retrieved NSAP statistics for SAP %d on board %d\n",
sapId, boardNum );