
Description | Cautions | Example | Errors
Name: |
long ATDX_BDTYPE(dev) | |
Inputs: |
int dev |
|
Returns: |
board or channel device type if successful | |
Includes: |
srllib.h | |
Category: |
Extended Attribute | |
The ATDX_BDTYPE( ) function returns the board type for the device specified in dev.
A typical use would be to determine whether or not the device can support particular features, such as Call Analysis.
The function parameter is defined as follows:
Parameter |
Description |
dev |
specifies the valid Dialogic device handle obtained when a board or channel was opened using dx_open( ). |
Possible return values are the following:
| |
| |
| |
| |
| |
| |
| |
| |
| |
None.
#include <stdio.h>
#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
#define ON 1
main()
{
int bddev;
long bdtype;
int call_analysis=0;
/* Open the board device */
if ((bddev = dx_open("dxxxB1",NULL)) == -1) {
/* Process error */
}
if((bdtype = ATDX_BDTYPE(bddev)) == AT_FAILURE) {
/* Process error */
}
if(bdtype == DI_D41BD) {
printf("Device is a D/41 Board\n");
call_analysis = ON;
}
.
.
}
This function will fail and return AT_FAILURE if an invalid board or channel device handle is specified in dev.
Click here to contact Dialogic Customer Engineering
Copyright 2002, Dialogic Corporation