Dialogic 05-0867-005 Table Top Game User Manual


 
sets the event mask cc_SetEvtMsk( )
233
Name:
int cc_SetEvtMsk(linedev, mask, action)
Inputs:
LINEDEV linedev
line device handle
unsigned long mask
bitmask or events
int action
action to be taken on the mask bit
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_SetEvtMsk( ) function sets the event mask associated with the specified
line device to support specific events in the application.
NOTE:
ISDN does not support disabling GCEV_BLOCKED or
GCEV_UNBLOCKED in the cc_SetEvtMsk( ) function
Parameter Description
linedev:
The line device handle.
mask:
The event to be enabled or disabled by setting the bitmask for
that event (see Table 24). Multiple transition events may be
enabled or disabled with one function call if the bitmask values
are bitwise OR’ed.
action:
Specifies whether to set, add, or subtract the mask bit(s) as
specified in the bitmask (see Table 25).
The possible bitmask values and the actions that they control are described in
Table 24 below.
Table 24. Bitmask Values
Bitmask Type Action Default
CCMSK_ALERT Receiving CCEV_ALERTING Enabled