Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetNonCallMsg( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_GetNonCallMsg(devhndl, msgblkptr)

Inputs:

LINEDEV devHndl

  board device handle associated with NULL or GLOBAL CRN event

 

NONCRN_BLK *msgblkptr

  pointer to NULL or GLOBAL information structure

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

Optional call handling

Mode:

synchronous

Technology:

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

Top Of PageDescription

The cc_GetNonCallMsg( ) function retrieves call data for a GLOBAL or NULL CRN event, at the time the event occurs. The cc_GetNonCallMsg( ) function must be used immediately after the event is received if the application needs the call information. The library will not queue the call information; subsequent messages on the same board device will overwrite this information if it is not retrieved immediately.

NULL events correspond to messages received with a dummy, or NULL, call reference value (CRV). These messages are of significance to all calls or channels on a particular trunk, that is, they do not correspond to a particular call. Therefore, the messages are delivered on the board level device (for example, briS1). The cc_GetNonCallMsg( ) function can be used to retrieve information for the following NULL events:

GLOBAL events correspond to messages received with a Zero call reference value. These messages are of significance to all calls or channels on a particular trunk, that is, they do not correspond to a particular call. Therefore, the messages are delivered on the board level device (for example, briS1). The cc_GetNonCallMsg( ) function can be used to retrieve the information for the following GLOBAL events:

Parameter

Description

devhndl:

The board device on which the GLOBAL or NULL event occurred.

msgblkptr:

Pointer to the NONCRN_BLK data structure that contains the information related to the GLOBAL or NULL CRN event. For a description of the data structure, see Section 6.9. NONCRN_BLK. See the Example code below for details.

Top Of PageCautions

Top Of PageExample

Top Of PageErrors

If the function returns a value < 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.

Possible error codes from the cc_GetNonCallMsg( ) function include the following:

Error Code

Description

ERR_ISDN_LIB | E_ISBADCRN

Bad call reference number

ERR_ISDN_LIB | E_BADPAR

Bad input parameter

ERR_ISDN_ISNOINFOBUF

Information buffer not ready

ERR_ISDN_LIB | ISNOFACILITYBUF

Network facility buffer not ready

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