Previous PageTable Of Contents../index.htmlIndexNext Page

cc_Restart( )

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

Name:

int cc_Restart(linedev, mode)

Inputs:

LINEDEV linedev

  device handle

 

unsigned long mode

  asynchronous or synchronous

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

System control

Mode:

synchronous or asynchronous

Technology:

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

Top Of PageDescription

The cc_Restart( ) function resets the channel to Null state. This function typically is used after the recovery of trunk errors or alarm conditions, or when the application needs to reset the channel to NULL state.

When the cc_Restart( ) function is called, the following activities take place on the B channel specified in linedev. If the application is using the call waiting feature (BRI and Windows only) and a board device has been specified in linedev, the following activities will take place on all of the B channels associated with the board device. The activities take place in the order listed:

  1. The active call is disconnected and all new incoming calls are blocked.
  2. The call reference number and all call information is cleared.
  3. When the function is returned, the channel is in blocked state. The application must reissue a new cc_WaitCall( ) to accept a new call.

Parameter

Description

linedev:

Specifies the line device handle for the channel or, for applications using the call waiting feature, the board device handle (BRI and Windows only).

mode:

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

NOTE: For synchronous applications, the cc_Restart( ) function must be issued by the same process as the device controlling process.

Top Of PageTermination Event

Top Of PageCautions

In asynchronous mode, the application cannot call any call state-related function prior to CCEV_RESTART.

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_Restart( ) 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

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