Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetSAPI( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_GetSAPI(sapip, evtdatap)

Inputs:

char *sapip

  pointer to service access point ID buffer

 

void *evtdatap

  pointer to an event block

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

System tools

Mode:

synchronous

Technology:

BRI/SC

Top Of PageDescription

The cc_GetSAPI( ) function retrieves the service access point ID (SAPI) associated with the CCEV_D_CHAN_STATUS event received from the event queue.

Parameter

Description

sapip:

The address of the location where the output service access point ID is returned.

evtdatap:

Pointer to the structure containing the event data. The pointer value is acquired through the Dialogic Standard Runtime Library (SRL) function sr_getevtdatap( ).

Top Of PageCautions

The cc_GetSAPI( ) function applies only to BRI protocols. (This function is not supported for the BRI/2 board.)

Top Of PageExample

Top Of PageErrors

If the function returns a value < 0 to indicate failure, use the cc_CauseValue( ) function to retrieve the reason code for the failure. The cc_ResultMsg( ) function can be used to interpret the reason code. Error codes are defined in the files ccerr.h, isdnerr.h, and isdncmd.h.

Error codes from the cc_GetSAPI( ) function include the following:

Error Code

Description

ERR_ISDN_LIB | E_ISNULLPTR

Null pointer error

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated December, 2001