Intel 05-1832-002 IP Phone User Manual


 
Voice API for Windows Operating Systems Library Reference — November 2003 45
disconnect analog receive channel from TDM bus — ag_unlisten( )
EDX_SH_BADLCLTS
Invalid channel number
EDX_SH_BADMODE
Function is not supported in current bus configuration
EDX_SH_BADTYPE
Invalid channel local time slot type (voice, analog, etc.)
EDX_SH_CMDBLOCK
Blocking command is in progress
EDX_SH_LCLDSCNCT
Channel is already disconnected from TDM bus time slot
EDX_SH_LIBBSY
Switch Handler library is busy
EDX_SH_LIBNOTINIT
Switch Handler library is uninitialized
EDX_SH_MISSING
Switch Handler is not present
EDX_SH_NOCLK
Switch Handler clock fallback failed
EDX_SYSTEM
System error
!
!!
! Example
#include <windows.h>
#include <srllib.h>
#include <dxxxlib.h>
main()
{
int chdev; /* Voice Channel handle */
/* Open board 1 channel 1 device */
if ((chdev = dx_open("dxxxB1C1", 0)) == -1) {
/* process error */
}
/* Disconnect receive of board 1, channel 1 from TDM bus time slot */
if (ag_unlisten(chdev) == -1) {
printf("Error message = %s", ATDV_ERRMSGP(chdev));
exit(1);
}
}
!
!!
! See Also
ag_listen( )