Version



typedef struct
{
DWORD size; /* Size of this structure */
DWORD timeon; /* Off-hook deglitch time */
DWORD timeoff; /* On-hook deglitch time */
DWORD min_flash_hook; /* Minimum time to qualify for flash-hook */
DWORD max_flash_hook; /* Beyond this time, this is a disconnect */
} CDI_SIGNALDETECTOR_PARMS;
|
Bit state change
|
Event presented to app:
|
|---|---|
|
Qualified off to on (more than timeon).
|
CDIEVN_A_CHANGE_ON
|
|
Qualified on to off (more than timeoff).
|
CDIEVN_A_CHANGE_OFF
|


typedef struct
{
DWORD size; /* Size of this structure */
DWORD cadence_type; /* Type of ring */
} CDI_RING_PARMS;

Note: You can change one or more of these cadences, if you wish. For more information, see the CX 2000 and CX 2000C Installation and Developer's Manual.


typedef struct
{
DWORD size; /* Size of this structure */
DWORD onqualtime; /* Minimum duration for DTMF detected */
DWORD offqualtime; /* Minimum duration for end of DTMF detected */
DWORD DTMF_mode; /* Mode of DTMF detection */
} CDI_DTMFDETECTOR_PARMS;
|
If DTMF_mode is...
|
CDIEVN_DTMF_STARTED is generated:
|
|---|---|
|
0
|
After the qualification time (onqualtime).
|
|
1
|
When the key is released.
|


typedef struct
{
DWORD size; /* Size of this structure */
DWORD freq1; /* First/only frequency of the generated tone */
DWORD freq2; /* Second frequency of the generated tone */
INT32 ampl1; /* Amplitude of the first/only frequency component */
INT32 ampl2; /* Amplitude of the second frequency component */
DWORD ontime; /* Duration of tone, single cadence generation */
DWORD offtime; /* Duration of silence between tones, single cadence */
DWORD ontime2; /* Duration of tone, double cadence generation */
DWORD offtime2; /* Duration of silence between tones, double cadence */
INT32 iterations; /* Number of repeats of the tone/silence period */
} CDI_TONE_PARMS;
Figure 3. Cadence Parameters




|
Pattern Value
|
Description
|
|---|---|
|
00000xxx1
|
The bits are low (the station is on-hook).
|
|
00001xxx
|
The bits are high (the station is off-hook).
|
| 1
xxx is any value.
|

|
Pattern Value
|
Description
|
|---|---|
|
0x00
|
Battery off, no ringing
|
|
0x08
|
Battery on, no ringing
|
|
0x0C
|
Battery on, continuous ringing
|
Version