isupGetNSapCfg

Sends a get configuration request to the TX board and blocks the calling application while waiting for a response. A network service access point configuration for the board is returned. The received configuration parameters are placed in the configuration buffer supplied by the application.

Prototype

short isupGetNSapCfg ( U8 board, IsupNSapCfg *cfg, S16 sapId)

Argument

Description

board

TX board number.

cfg

Pointer to the IsupNSapCfg structure where the requested configuration information is returned. Refer to isupInitNSapCfg for the structure definition.

sapId

ISUP service access point.


Return values

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.


Example

S16         status;
U8          boardNum=1;
IsupNsapCfg cfg;
S16         sapId=1;


if ((status = isupGetNsapCfg(boardNum, &cfg, sapId)) != ISUP_MGMT_SUCCESS)
{
    printf( "Board %d Service Access Point %d Get NSAP Configuration Request
        failed: status = %d\n", boardNum, sapId, status );
}
else
{
    printf("Successfully obtained NSAP configuration information for service access
        point %d on board %d\n", sapId, boardNum);

 /* The cfg structure contains the returned NSAP configuration information */

}