Previous PageTable Of Contents../index.htmlIndexNext Page

dx_getfeaturelist( )

Description | Cautions | Example | Errors | See Also

Name:

int dx_getfeaturelist(chdev, feature_tablep)

Inputs:

int chdev

  voice channel handle

 

FEATURE_TABLE *feature_tablep

  pointer to features information structure

Returns:

0 on success

 
 

-1 on error

 

Includes:

dxxxlib.h

 

Mode:

Synchronous

Top Of PageDescription

The dx_getfeaturelist( ) function returns a list of features supported on the device. This function is available for use on all Dialogic voice devices..

Parameter

Description

chdev

Specifies the valid voice channel handle obtained when the channel was opened using dx_open( ).

feature_tablep

Specifies a pointer to the data structure FEATURE_TABLE that contains the bitmasks of various features.

On return from the function, the FEATURE_TABLE structure contains the relevant information and is declared as follows:

Features reported by each member of the FEATURE_TABLE structure are defined in dxxxlib.h. To determine what features are enabled on the voice device, "bitwise AND" the returned bitmask with the following defines (see the example code).

Top Of PageCautions

This function will fail if an invalid voice channel handle is specified.

Top Of PageExample

Top Of PageErrors

If the function returns -1, use the 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:

Equate

Returned When

EDX_BADPARM

Parameter error

EDX_SH_BADEXTTS

SCbus 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 busy

EDX_SH_LIBNOTINIT

Switch Handler library 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

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Dialogic Corporation
All rights reserved
This page generated February, 2002