66 Voice API for Windows Operating Systems Library Reference — November 2003
ATDX_CONNTYPE( ) — return the connection type for a completed call
printf( "call progress analysis returned %d\n", cares );
if ( cares == CR_CNCT ) {
switch ( ATDX_CONNTYPE( dxxxdev ) ) {
case CON_CAD:
printf( "Cadence Break\n" );
break;
case CON_LPC:
printf( "Loop Current Drop\n" );
break;
case CON_PVD:
printf( "Positive Voice Detection\n" );
break;
case CON_PAMD:
printf( "Positive Answering Machine Detection\n" );
break;
default:
printf( "Unknown connection type\n" );
break;
}
}
/*
* Continue Processing
* .
* .
* .
*/
/*
* Close the opened Voice Channel Device
*/
if ( dx_close( dxxxdev ) != 0 ) {
perror( "close" );
}
/* Terminate the Program */
exit( 0 );
}
!
!!
! See Also
• dx_dial( )
• ATDX_CPTERM( )
• DX_CAP data structure