504 Voice API for Windows Operating Systems Library Reference — November 2003
DX_CST — call status transition (CST) information
DX_CST
call status transition (CST) information
typedef struct DX_CST {
unsigned short cst_event;
unsigned short cst_data;
} DX_CST;
!
!!
! Description
The DX_CST data structure contains parameters for call status transition.
DX_CST contains call status transition information after an asynchronous TDX_CST termination
or TDX_SETHOOK event occurs. Use Standard Runtime Library (SRL) Event Management
function, sr_getevtdatap( ), to retrieve the structure.
!
!!
! Field Descriptions
The fields of the DX_CST data structure are described as follows:
cst_event
Contains the event type. Use the following defines to identify the event type:
• DE_DIGITS – digit received
• DE_LCOFF – loop current off
• DE_LCON – loop current on
• DE_LCREV – loop current reversal
• DE_RINGS – rings received
• DE_RNGOFF – caller hang up event (incoming call is dropped before being accepted)
• DE_SILOFF – non-silence detected
• DE_SILON – silence detected
• DE_TONEOFF – tone off event
• DE_TONEON – tone on event
• DE_WINK – received a wink
• DX_OFFHOOK – offhook event
• DX_ONHOOK – onhook event
Note: DX_ONHOOK and DX_OFFHOOK are returned if a TDX_SETHOOK termination
event is received.
cst_data
Contains data associated with the CST event. The data are described for each event type as
follows:
• DE_DIGITS – ASCII digit (low byte) and the digit type (high byte)
• DE_LCOFF – time previous last loop current on transition in 10 msec units
• DE_LCON – time since previous loop current off transition in 10 msec units
• DE_LCREV – time since previous loop current reversal transition in 10 msec units
• DE_RINGS – 0
• DE_SILOFF – time since previous silence started in 10 msec units
• DE_SILON – time since previous silence stopped in 10 msec units
• DE_TONEOFF – user-specified tone ID
• DE_TONEON – user-specified tone ID
• DE_WINK – N/A
• DX_OFFHOOK – N/A