cc_GetSAPI( ) retrieves the service access point ID
148
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
!
! !
!
Description
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( ).
!
! !
!
Cautions
The cc_GetSAPI( ) function applies only to BRI protocols. (This function is not
supported for the BRI/2 board.)
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include "srllib.h"
#include "dtilib.h"
#include "cclib.h"
long EventHandler(event)
{int rc;