Previous PageTable Of Contents../index.htmlIndexNext Page

cc_SetMinDigits( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_SetMinDigits(linedev, mindigits)

Inputs:

LINEDEV linedev

  device handle

 

int mindigits

  the minimum number of digits to be collected

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

Optional call handling

Mode:

synchronous

Technology:

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

Top Of PageDescription

The cc_SetMinDigits( ) function sets the minimum number of digits to be collected prior to receiving a CCEV_OFFERED event, in asynchronous mode, or prior to executing the cc_WaitCall( ) function, in synchronous mode. For example, if the minimum number of digits is set to 10, the firmware will not generate CCEV_OFFERED or the cc_WaitCall( ) function will not complete until at least 10 digits are collected.

Parameter

Description

linedev:

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

mindigits:

Specifies the minimum number of digits to be collected prior to receiving a CCEV_OFFERED event (asynchronous) or prior to executing the cc_WaitCall( ) function (synchronous).

Top Of PageCautions

Using cc_SetMinDigits( ) on a board device will overwrite any prior setting used on an individual channel device belonging to that board.

Top Of PageExample

NOTE:
See the code sample in the cc_MakeCall( ) function description for an example of how to use the cc_SetMinDigits( ) function with the call waiting feature (BRI and Windows only).

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


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