Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetChanId( )

Description | Cautions | Example | Errors | See Also

Name:

cc_GetChanId(crn, chanId)

Inputs:

CRN crn

  call reference number

 

CHAN_ID *chanId

  pointer to channel ID structure

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

Optional call handling

Mode:

synchronous

Technology:

BRI/2; BRI/SC

Top Of PageDescription

The cc_GetChanId( ) function gets the last channel information received from messages for the specified CRN. This function is used after a call-related event is received for the board device (e.g., dtiB1)

Parameter

Description

crn:

The call reference number.

chanId:

Pointer to the Channel ID structure that contains the last channel preference known for the specified CRN.

Top Of PageCautions

The channel ID information associated with a specific CRN may change after an incoming call is connected or answered.

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_GetChanId( ) function include the following:

Error Code

Description

ERR_ISDN_LIB | E_ISBADIF

Bad interface number

ERR_ISDN_LIB | E_ISBADCALLID

Bad call identifier

ERR_ISDN_LIB | E_ISBADTS

Bad time slot

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