Intel 05-1832-002 IP Phone User Manual


 
202 Voice API for Windows Operating Systems Library Reference — November 2003
dx_enbtone( ) — enable detection of a user-defined tone
printf( "Lasterror = %d Err Msg = %s\n",
ATDV_LASTERR( dxxxdev ), ATDV_ERRMSGP( dxxxdev ) );
dx_close( dxxxdev );
exit( 1 );
}
/*
* Enable Detection of ToneId TID_1
*/
if (
dx_enbtone( dxxxdev, TID_1, DM_TONEON | DM_TONEOFF )
== -1 ) {
printf( "Unable to Enable Detection of Tone %d\n", TID_1 );
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 );
}
!
!!
! See Also
dx_addtone( )
dx_blddt( ), dx_bldst( ), dx_blddtcad( ), dx_bldstcad( )
dx_distone( )
global tone detection in Voice API Programming Guide
dx_getevt( )
DX_CST data structure
sr_getevtdatap( ) in Standard Runtime Library API Library Reference