Previous PageTable Of Contents../index.htmlIndexNext Page

dx_setdigbuf( )

Description | Cautions | Example | Errors

Name:

int dx_setdigbuf(chdev,mode)

Inputs:

int chdev

  valid Dialogic channel device handle

 

int mode

  digit buffering mode

Returns:

0 if successful

 

-1 if failure

Includes:

srllib.h

 

dxxxlib.h

Category:

I/O

Mode:

synchronous

Top Of PageDescription

The dx_setdigbuf( ) function sets the digit buffering mode that will be used by the Voice Driver. Once the digit buffer is full (31 digits), the application may select whether subsequent digits will be ignored or will overwrite the oldest digits in the queue.

The function parameters are defined as follows:

Parameter

Description

chdev

specifies the valid Dialogic channel device handle obtained by a call to dx_open( ).

mode

specifies the type of digit buffering that will be used. Mode can be:

 

  DX_DIGTRUNC

Incoming digits will be ignored if the digit buffer is full (default).

 

  DX_DIGCYCLIC

Incoming digits will overwrite the oldest digits in the buffer if the buffer is full.

Top Of PageCautions

When you call dx_setdigbuf( ), the function clears the previously detected digits in the digit buffer.

Top Of PageExample

Top Of PageErrors

If this function returns -1 to indicate failure, use ATDV_LASTERR( ) and ATDV_ERRMSGP( ) to retrieve one of the following error reasons:

EDX_BADPARM

  • Invalid Parameter

EDX_SYSTEM

EDX_TIMEOUT

  • Timeout limit is reached


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Dialogic Corporation
All rights reserved
This page generated February, 2002