100 Voice API for Windows Operating Systems Library Reference — November 2003
ATDX_LINEST( ) — return the current activity on the channel
!
!!
!Errors
This function will fail and return AT_FAILURE if an invalid channel device handle is specified in
chdev.
!
!!
!Example
#include <srllib.h>
#include <dxxxlib.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 */
}
.
.
}
!
!!
!See Also
None.