Voice API for Windows Operating Systems Library Reference — November 2003 493
Syntellect License Automated Attendant — DX_ATTENDANT
DX_ATTENDANT
Syntellect License Automated Attendant
typedef int (*PWAITFUNC)(int dev, BOOL *bWaiting);
typedef int (*PFUNC)(int dev);
typedef BOOL (*PMAPFUNC) (char *, char *);
typedef struct {
int nSize;
char szDevName[15];
PFUNC pfnDisconnectCall;
PWAITFUNC pfnWaitForRings;
PFUNC pfnAnswerCall;
PMAPFUNC pfnExtensionMap;
char szEventName[MAX_PATH+1];
int nExtensionLength;
int nTimeOut; // in seconds
int nDialStringLength;
} DX_ATTENDANT, *PDX_ATTENDANT;
!
!!
!Description
The DX_ATTENDANT data structure is not supported on DM3 boards.
The DX_ATTENDANT data structure contains parameters for Syntellect License Automated
Attendant.
This structure provides the information necessary for the proper operation and initialization of
li_attendant( ). This structure is used in a synchronous environment and is defined in syntellect.h
located in the \inc directory.
!
!!
!Field Descriptions
The fields of the DX_ATTENDANT data structure are described as follows:
nSize
Required. Represents the size of this data structure in bytes. Used for version control.
SzDevName
Required. Identifies the device name to open on which li_attendant( ) will run; for example,
“dxxxB1C1”.
pfnDisconnectCall
Optional. Specifies the address of a disconnect function. When NULL, dx_sethook( ) is
called. This field can be used to override default analog front end interface behavior. For
example, on a T-1 interface a function that manipulates the A and B bits can be used instead to
disconnect a call.
pfnWaitForRings
Optional. Specifies the address of a “Wait for Rings” function. When NULL, dx_getevt( ) is
called. This field can be used to override default analog front end interface behavior. For
example, on a T-1 interface, a function that monitors the A and B bits can be used instead to
wait for an incoming call.
pfnAnswerCall
Optional. Specifies the address of a connect function. When NULL, dx_sethook( ) is called.
This field can be used to override default analog front end interface behavior. For example, on