Previous PageTable Of Contents../index.htmlIndexNext Page

cc_SetChanState( )

Description | Termination Events | Cautions | Example | Errors | See Also

Name:

int cc_SetChanState(linedev, chanstate, mode)

Inputs:

LINEDEV linedev

  line device handle

 

int chanstate

  channel service state

 

unsigned long mode

  synchronous or asynchronous

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

System tools

Mode:

synchronous or asynchronous

Technology:

PRI (all protocols)

Top Of PageDescription

The cc_SetChanState( ) function is used to change the maintenance state of a specified B channel. When power is first turned on, all channels are placed in the IN_SERVICE state. However, in some protocols, the D channel may need to be activated.

NOTE:
This feature may not be available in some countries.

Parameter

Description

linedev:

The line device handle of the B channel.

chanstate:

The channel service state. Possible values for chanstate are:

  IN_SERVICE - Informs the board that the host is ready to receive and send a message.

  MAINTENANCE - Informs the host that normal outgoing traffic is not allowed. Only an incoming test call is permitted.

  OUT_OF_SERVICE - Informs the board that the host is not ready to receive or send a message. For some protocols, the firmware will reject all incoming and outgoing requests.

mode:

Specifies asynchronous (EV_ASYNC) or synchronous (EV_SYNC) mode.

Top Of PageTermination Events

Top Of PageCautions

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

Error Code

Description

ERR_ISDN_LIB | E_ISBADTS

Bad time slot

ERR_ISDN_LIB | E_ISBADIF

Bad interface number

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