Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetBChanState( )

Description | Caution | Example | Errors | See Also

Name:

int cc_GetBChanState(linedev, bchstate_buf)

Inputs:

LINEDEV linedev

  line device handle for the B channel

 

int *bchstate_buf

  pointer to the location where the B channel state value is stored

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

System tools

Mode:

synchronous

Technology:

BRI/SC; PRI (all protocols)

Top Of PageDescription

The cc_GetBChanState( ) function retrieves the status of the B channel at any time.

Parameter

Description

linedev:

The line device handle for the B channel.

bchstate_buf:

Points to the buffer containing the requested B channel state value. The definitions of the possible channel states are:

 

ISDN_IN_SERVICE

B channel is in service

 

ISDN_MAINTENANCE

B channel is in maintenance

 

ISDN_OUT_OF_SERVICE

B channel is out of service

Top Of PageCaution

This function is not supported for the BRI/2 board.

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.

Error codes from the cc_GetBChanState( ) function include the following:

Error Code

Description

ERR_ISDN_LIB | E_ISBADIF

Bad interface number

ERR_ISDN_LIB | E_ISBADTS

Bad time slot

Top Of PageSee Also

None


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