Previous PageTable Of Contents../index.htmlIndexNext Page

cc_MakeCall( )

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

Name:

int cc_MakeCall(linedev, crnp, numberstr, makecallp, timeout, mode)

Inputs:

LINEDEV linedev

  device handle

 

CRN *crnp

  pointer to call reference number

 

char *numberstr

  destination phone number

 

MAKECALL_BLK *makecallp

  pointer to outbound call information

 

int timeout

  time interval

 

unsigned long mode

  synchronous or asynchronous

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

Call control

Mode:

synchronous or asynchronous

Technology:

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

Top Of PageDescription

The cc_MakeCall( ) function allows the application to request a connection to make an outgoing call on the specified line device or, for the call waiting feature, on the specified board device (BRI and Windows only). When this function is issued asynchronously, a call reference number (CRN) is assigned and returned immediately if the function is successful. If the function is issued synchronously, the CRN will be available at the successful completion of the function. All subsequent communications between the application and the driver regarding the call use the CRN as a reference.

Parameter

Description

linedev:

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

crnp:

Pointer to the buffer where the call reference number will be stored.

numberstr:

The destination (called party 's) telephone number string. The maximum length is 32 digits.

makecallp:

The pointer to the MAKECALL_BLK structure, which is a list of parameters used to specify the outgoing call. See Section 6.8. MAKECALL_BLK for a description of the MAKECALL_BLK structure and for definitions and possible values for the parameters contained in the structure. For information on initializing the MAKECALL_BLK structure, see Section 6.8.1. MAKECALL_BLK Initialization.

timeout:

The amount of time (in seconds) during which the call must be established. (Used in synchronous mode only.) If the timeout value expires before the remote end answers the call, then the cc_MakeCall( ) function returns -1. Setting the timeout parameter to 0 causes this parameter to be ignored.

mode:

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

Top Of PageTermination Events

Top Of PageCautions

Top Of PageExample

Call Waiting Example (Windows Only):

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

Error Code

Description

ERR_ISDN_LIB | E_ISBADPAR

Bad input parameter

ERR_ISDN_LIB | E_ISBADIF

Bad interface number

ERR_ISDN_LIB | E_ISBADTS

Bad time slot

ERR_ISDN_LIB | E_ISINVNETWORK

Invalid network type

ERR_ISDN_LIB | E_ISBADCRN

Bad call reference number

ERR_ISDN_LIB | E_ISBADCALLID

Bad call identifier

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