Dialogic 05-0867-005 Table Top Game User Manual


 
retrieves the call reference number for the event cc_GetCRN( )
101
Name:
int cc_GetCRN(crnp, evtdatap)
Inputs:
CRN *crnp
pointer to the CRN
void *evtdatap
pointer to an event block
Returns:
0 on success
< 0 on failure
Includes:
cclib.h
Category:
System tools
Mode:
synchronous
Technology:
BRI/2; BRI/SC; PRI (all protocols)
!
! !
!
Description
The cc_GetCRN( ) function retrieves the call reference number for the event in
the event queue pointed to by evtdatap. The evtdatap pointer may be acquired
using the sr_getevtdatap( ) function in the Dialogic Standard Runtime Library
(SRL).
If the event is channel or time slot related and not call related, cc_GetCRN( )
returns a value < 0. If 0 is returned, the event is call related and the call reference
number will be in the location pointed to by crnp.
Parameter Description
crnp:
The address where the returned call reference number (CRN) is
stored.
evtdatap:
Pointer to the structure containing the event data block. The
pointer value is acquired using the SRL function
sr_getevtdatap( ).
!
! !
!
Cautions
None
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include "srllib.h"
#include "dtilib.h"