Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetEvtMsk( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_GetEvtMsk(bdev, maskp)

Inputs:

LINEDEV bdev

  device handle

 

ULONG *maskp

  pointer to mask buffer

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

System tools

Mode:

synchronous

Technology:

BRI/2; BRI/SC; PRI (all protocols)

Top Of PageDescription

The cc_GetEvtMsk( ) function retrieves the current ISDN event mask for a specified board device handle for PRI or station device handle for BRI.

Parameter

Description

bdev:

Board device handle for PRI, station device handle for BRI.

maskp:

The address of the buffer that stores the current ISDN event mask.

Table 20 lists the possible bitmask values and the actions that they control.


Table 20. Bitmask Values

Bitmask Type

Action

Default Setting

CCMSK_ALERT

Receiving CCEV_ALERTING

Event enabled

CCMSK_CALLACK_SEND

Application sends first response to SETUP message: CALL_SETUP_ACK
CALL_PROCEEDING

Firmware sends first response to SETUP

CCMSK_PROCEEDING

Receiving CCEV_PROCEEDING

Event enabled

CCMSK_PROGRESS

Receiving CCEV_PROGRESSING

Event enabled

CCMSK_SERVICE

Receiving CCEV_SERVICE. When this event arrives, the application should respond with a status message using cc_SndMsg( ). The firmware will not automatically respond to this message.

Not enabled

CCMSK_SERVICE_ACK

Receiving CCEV_SETCHANSTATE. When this event is masked, the cc_SetChanState( ) function may be blocked.

Not enabled

CCMSK_SETUP_ACK

Receiving CCEV_SETUP_ACK

Event not enabled

CCMSK_STATUS

Receiving CCEV_STATUS

Not enabled

CCMSK_STATUS_
ENQUIRY

Receiving CCEV_STATUS_ENQUIRY. When this event arrives, the application should respond with a status message using the cc_SndMsg( ) function. The firmware will not automatically respond to this message.

Not enabled

CCMSK_TERMINATE

Delay RELEASE COMPLETE message until host application calls the cc_ReleaseCall( ) function.

Firmware does not wait for cc_ReleaseCall( ) and sends RELEASE COMPLETE when RELEASE is received.

CCMSK_TMREXPEVENT

Receiving the CCEV_TIMER event. This event is generated when some timer expires at Layer 3. Timer ID, Call ID and the value of the timer are returned.

Not enabled

Top Of PageCautions

None

Top Of PageExample

Top Of PageErrors

If the function returns < 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_GetEvtMsk( ) function include the following:

Error Code

Description

ERR_ISDN_LIB | E_ISBADIF

Bad interface number

ERR_ISDN_LIB | E_ISBADTS

Bad time slot

ERR_ISDN_LIB | E_ISBADPAR

Bad input parameter

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