
Description | Cautions | Example | Errors
Name: |
long ATDX_LINEST(chdev) | |
Inputs: |
int chdev |
|
Returns: |
current line status of channel if successful | |
Includes: |
srllib.h | |
Category: |
Extended Attribute | |
The ATDX_LINEST( ) function returns the current activity on the channel specified in chdev. The information is returned in a bitmap.
The function parameter is defined as follows:
Parameter |
Description |
chdev |
specifies the valid channel device handle obtained when the channel was opened using dx_open( ). |
Possible return values are the following:
None.
#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
main()
{
int chdev;
long linest;
/* Open the channel device */
if ((chdev = dx_open("dxxxB1C1",NULL)) == -1) {
/* Process error */
}
/* Examine line status bitmap of the channel. Perform application-specific
* action
*/
if((linest = ATDX_LINEST(chdev)) == AT_FAILURE) {
/* Process error */
}
if(linest & RLS_LCSENSE) {
/* No loop current */
}
.
.
}
This function will fail and return AT_FAILURE if an invalid channel device handle is specified in chdev.
Click here to contact Dialogic Customer Engineering
Copyright 2002, Dialogic Corporation