Intel 05-1832-002 IP Phone User Manual


 
464 Voice API for Windows Operating Systems Library Reference — November 2003
r2_creatfsig( ) — create R2/MF forward signal tone
EDX_MAXTMPLT
Maximum number of user-defined tones for the board
EDX_SYSTEM
Error from operating system; use dx_fileerrno( ) to obtain error value
EDX_TONEID
Invalid tone template ID
!
!!
! Example
#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 );
}
/*
* Create all forward signals
*/
if (
r2_creatfsig( dxxxdev, R2_ALLFSIG )
== -1 ) {
printf( "Unable to Create the Forward Signals\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 );
}
!
!!
! See Also
r2_playbsig( )
dx_addtone( )
dx_blddt( )