
Description | Cautions | Example | Errors | See Also
Name: |
int dx_clrsvcond(chdev) | |
Inputs: |
int chdev |
|
Returns: |
0 if success | |
-1 if failure | ||
Includes: |
srllib.h | |
Category: |
Speed and Volume | |
The dx_clrsvcond( ) function clears all speed or volume adjustment conditions that have been previously set with the dx_setsvcond( ) function or the convenience functions dx_addspddig( ) or dx_addvoldig( ).
Each time you want to reset a single adjustment condition, you must reset all adjustment conditions, by first clearing them using this function, and then resetting the conditions using dx_setsvcond( ), dx_addspddig( ) or dx_addvoldig( ).
Parameter |
Description |
chdev |
specifies the valid channel device handle obtained when the channel was opened using dx_open( ). |
None.
#include <stdio.h>
#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
main()
{
int dxxxdev;
/*
* Open the Voice Channel Device and Enable a Handler
*/
if ( ( dxxxdev = dx_open( "dxxxB1C1", NULL) ) == -1 ) {
perror( "dxxxB1C1" );
exit( 1 );
}
/*
* Clear all Speed and Volume Conditions
*/
if ( dx_clrsvcond( dxxxdev ) == -1 ) {
printf( "Unable to Clear the Speed/Volume" );
printf( " Conditions\n" );
printf( "Lasterror = %d Err Msg = %s\n",
ATDV_LASTERR( dxxxdev ), ATDV_ERRMSGP( dxxxdev ) );
dx_close( dxxxdev );
exit( 1 );
}
/*
* Continue Processing
* .
* .
* .
*/
/*
* Close the opened Voice Channel Device
*/
if ( dx_close( dxxxdev ) != 0 ) {
perror( "close" );
}
/* Terminate the Program */
exit( 0 );
}
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_BADPROD |
|
EDX_SYSTEM |
|
Click here to contact Dialogic Customer Engineering
Copyright 2002, Dialogic Corporation