
Description | Cautions | Example | Errors
Name: |
int dx_clrdigbuf(chdev) | |
Inputs: |
int chdev |
|
Returns: |
0 if success | |
-1 if failure | ||
Includes: |
srllib.h | |
Category: |
Configuration | |
The dx_clrdigbuf( ) function clears all digits in the firmware digit buffer of the channel specified by chdev to be flushed..
The function parameter is defined as follows:
Parameter |
Description |
chdev |
specifies the valid channel device handle obtained when the channel was opened using dx_open( ). |
None.
#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
main()
{
int chdev; /* channel descriptor */
.
.
.
/* Open Channel */
if ((chdev = dx_open("dxxxB1C1",NULL)) == -1) {
/* process error */
}
/* Clear digit buffer */
if (dx_clrdigbuf(chdev) == -1) {
/* process error*/
}
.
.
}
See the dx_getdig( ), dx_play( ), and dx_rec( ) for more examples of how to use dx_clrdigbuf( ).
If this function returns -1 to indicate failure, use ATDV_LASTERR( ) and ATDV_ERRMSGP( ) to retrieve one of the following error reasons:
|
EDX_BADPARM |
|
EDX_SYSTEM |
|
Click here to contact Dialogic Customer Engineering
Copyright 2002, Dialogic Corporation