Intel 05-1832-002 User Manual

Page of 564
Voice API for Windows Operating Systems Library Reference — November 2003
109
return the current state of the channel — ATDX_STATE( )
ATDX_STATE( )
return the current state of the channel
!
!
!
Description
The ATDX_STATE( ) function returns the current state of the channel chdev.
Possible return values are the following:
CS_DIAL
Dial state
CS_CALL
Call state
CS_GTDIG
Get Digit state
CS_HOOK
Hook state
CS_IDLE
Idle state
CS_PLAY
Play state
CS_RECD
Record state
CS_STOPD
Stopped state
CS_TONE
Playing tone state
Name:
long ATDX_STATE(chdev)
Inputs:
int chdev
valid channel device handle
Returns:
current state of channel if successful
AT_FAILURE if error
Includes:
srllib.h
dxxxlib.h
Category:
Extended Attribute
Mode:
synchronous
Platform:
DM3, Springware 
Parameter
Description
chdev 
specifies the valid channel device handle obtained when the channel was opened 
using dx_open( )