Previous PageTable Of Contents../index.htmlIndexNext Page

cc_HoldCall( )

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

Name:

int cc_HoldCall(crn, mode)

Inputs:

CRN crn

  call reference number

 

unsigned long mode

  synchronous or asynchronous

Returns:

0 on success

<0 on failure

Includes:

cclib.h

Category:

Hold and Retrieve

Mode:

synchronous or asynchronous

Technology:

BRI/2; BRI/SC; PRI (DPNSS and Q.SIG only)

Top Of PageDescription

The cc_HoldCall( ) function allows the application to place an active call on hold. For PRI protocols and for BRI Network-side, the call must be in the Connected state to be put on hold. For BRI User-side, the call can be put on hold any time after the CCEV_PROCEEDING message is received.

Parameter

Description

crn:

The call reference number. Each call needs a CRN.

mode:

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

Top Of PageTermination Events

In synchronous mode, the CCEV_TASKFAIL event is returned if the function fails.

Top Of PageCautions

For PRI protocols and BRI Network-side, the cc_HoldCall( ) function is valid only when the call is in the Connected state. For BRI User-side, the function can be called any time after the CCEV_PROCEEDING message is received.

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

Error Code

Description

ERR_ISDN_LIB | E_ABORTED

Task aborted by the cc_Restart( ) function

ERR_ISDN_LIB | E_BADSTATE

The cc_Restart( ) function is in progress

ERR_ISDN_FW | ISDN_BADSTATE

Cannot accept event in current state

ERR_ISDN_LIB | E_ISNULL_PTR

Null pointer error

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