Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetMoreDigits( )

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

Name:

int cc_GetMoreDigits(crn, numofdigs, timeout, mode)

Inputs:

CRN crn

  call reference number

 

int numofdigs

  number of digits to be collected

 

long timeout

  timeout value in seconds

 

unsigned long mode

  asynchronous or synchronous

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

Call control

Mode:

asynchronous or synchronous

Technology:

PRI (excluding DPNSS)

Top Of PageDescription

The cc_GetMoreDigits( ) function collects more digits via overlap receiving. After an incoming call is received, the application examines the completeness of the destination address. If more digits are needed, the application calls the cc_GetMoreDigits( ) function with the number of additional digits to be collected. The function is returned when all requested digits are collected.

The collected digits can be retrieved by calling the cc_GetDNIS( ) function. When enough digits have been collected, the application must use the cc_CallAck( ) function to acknowledge the setup message.

Parameter

Description

crn:

The call reference number. Each call needs a valid CRN.

numofdigs:

The number of digits to be collected.

timeout:

Specifies the amount of time in seconds in which the additional digits must be collected. The function returns unconditionally when the timer expires.

The timeout parameter is used to prevent a blocked situation in which the application expects more digits than the network provides. The timeout value must be a non-zero positive value. (A value < 0 means that the additional digits can be collected "forever.")

NOTE:
The timeout parameter is used in synchronous mode only.

mode:

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

Top Of PageTermination Event

Top Of PageCautions

This function is not supported for the PRI DPNSS protocol.

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

cc_WaitCall( )


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