254 Voice API for Windows Operating Systems Library Reference — November 2003
dx_getxmitslot( ) — get TDM bus time slot number of voice transmit channel
/* Open board 1 channel 1 devices */
if ((chdev = dx_open("dxxxB1C1", 0)) == -1) {
/* process error */
}
/* Fill in the TDM bus time slot information */
sc_tsinfo.sc_numts = 1;
sc_tsinfo.sc_tsarrayp = &scts;
/* Get TDM bus time slot connected to transmit of voice channel 1 on board ...1 */
if (
dx_getxmitslot(chdev, &sc_tsinfo)
== -1) {
printf("Error message = %s", ATDV_ERRMSGP(chdev));
exit(1);
}
printf("%s transmitting on TDM bus time slot %d", ATDV_NAMEP(chdev),scts);
return(0);
}
!
!!
!See Also
dx_listen( )
dt_listen( ) in the Digital Network Interface Software Reference
fx_listen( ) in the Fax Software Reference