
Description | Cautions | Example | Errors | See Also
Name: |
long ATDX_HOOKST(chdev) | |
Inputs: |
int chdev |
|
Returns: |
current hook state of channel if successful | |
Includes: |
srllib.h | |
Category: |
Extended Attribute | |
The ATDX_HOOKST( ) function returns the current hook-switch state of the channel chdev.
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 hookst;
/* Open the channel device */
if ((chdev = dx_open("dxxxB1C1",NULL)) == -1) {
/* Process error */
}
.
.
/* Examine Hook state of the channel. Perform application specific action */
if((hookst = ATDX_HOOKST(chdev)) == AT_FAILURE) {
/* Process error */
}
if(hookst == DX_OFFHOOK) {
/* Channel is Off-hook */
}
.
.
}
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