Dialogic 05-0867-005 Table Top Game User Manual


 
sets up conditions for processing an incoming call cc_WaitCall( )
289
Name:
int cc_WaitCall(linedev, crnptr, waitcall_blkp, timeout,
mode)
Inputs:
LINEDEV linedev
device handle
CRN *crnptr
pointer to call
reference number
WAITCALL_BLK *waitcall_blkp
for future use
int timeout
amount of time to
wait for calls
unsigned long mode
synchronous or
asynchronous
Returns:
0 on success
< 0 on failure
Includes:
cclib.h
Category:
Call control
Mode:
synchronous or asynchronous
Technology:
BRI/2; BRI/SC; PRI (all protocols)
!
! !
!
Description
The cc_WaitCall( ) function sets up conditions for processing an incoming call.
This function also sets up the buffer location where the incoming call’s
information is stored and unblocks the time slot to allow for notification of other
incoming calls
Parameter Description
linedev:
The line device handle or, for the call waiting feature, the
board device handle (BRI and Windows only). When a board
device is specified, all subsequent CCEV_OFFERED events
will be for that board device.
crnptr:
Pointer to where the call reference number will be stored.
(The crnptr parameter is used in synchronous mode only.)
waitcall_blkp:
For future use. Set to NULL.
timeout:
The time, in seconds, that the application will wait for the call.
If the timeout is 0, a value < 0 will return unless the incoming
call is pending. The timeout parameter is used in synchronous
mode only.
mode:
Specifies asynchronous (EV_ASYNC) or synchronous