Voice API for Windows Operating Systems Library Reference — November 2003 445
wait for a specified number of rings — dx_wtring( )
!
!!
!Example
#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 */
}
/* Wait for two rings on this channel - no timeout */
if (
dx_wtring(chdev,2,DX_OFFHOOK,-1) ==
-1) {
/* process error */
}
.
.
}
!
!!
!See Also
dx_setevtmsk( )
dx_getevt( )
dx_sethook( )
DX_EBLK data structure