Intel 05-1832-002 IP Phone User Manual


 
238 Voice API for Windows Operating Systems Library Reference — November 2003
dx_getfeaturelist( ) — retrieve feature support information for the device
!
!!
! Errors
If the function returns -1, use the Standard Runtime Library (SRL) Standard Attribute function
ATDV_LASTERR( ) to obtain the error code or use ATDV_ERRMSGP( ) to obtain a descriptive
error message. One of the following error codes may be returned:
EDX_BADPARM
Parameter error
EDX_SH_BADEXTTS
TDM bus time slot is not supported at current clock rate
EDX_SH_BADINDX
Invalid Switch Handler index number
EDX_SH_BADTYPE
Invalid local time slot channel type (voice, analog, etc.)
EDX_SH_CMDBLOCK
Blocking command is in progress
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
Error from operating system; use dx_fileerrno( ) to obtain error value
!
!!
! Example
#include <stdio.h>
#include <windows.h>
#include "srllib.h"
#include "dxxxlib.h"
void main(int argc, char ** argv)
{
char chname[32] = "dxxxB1C1";
int dev;
FEATURE_TABLE feature_table;
if ((dev = dx_open(chname, 0)) == -1) {
printf("Error opening \"%s\"\n", chname);
exit(1);
}
if (dx_getfeaturelist(dev, &feature_table) == -1) {
printf("%s: Error %d getting featurelist\n", chname, ATDV_LASTERR(dev));
exit(2);
}