(Page 9 of 9 in this chapter)


Wink-Start (WNK)

WNK0 Two-way wink-start for AG-T1 or DTI with AG24-60.

WNK1 Two-way wink-start for AG-8 E&M.

Parameter Structure

typedef struct
{
DWORD size; /* Size of this structure. */
/* inbound and outbound: */
WORD qualaddron; /* (ms) qual dur. ON during addressing */
WORD qualaddroff; /* (ms) qual dur. OFF during addressing */
WORD qualdisconnect; /* (ms) qual dur. of disconnect */
WORD qualpermsignal; /* (ms) qual dur. of permanent signal */
WORD reserved; /* reserved */
WORD mfflags; /* mask for behavior when using MFs: */
/* 0x1 = begin with KP tone */
/* 0x2 = end with ST tone */
/* inbound only: */
WORD numdigits; /* expected number of digits */
WORD defaulttone; /* default tone if PC does not respond */
/* 0 = reorder (fast busy) */
/* 1 = ringing */
/* 2 = busy */
WORD winktime; /* (ms) duration of the wink */
WORD detectmode; /* method of detection: */
/* 0 = DTMFs (and pulses) */
/* 1 = pulses (and DTMFs) */
/* 2 = MFs (and pulses) */
WORD waitforPCtime; /* (ms) waiting for PC to respond */
WORD prewinktime; /* (ms) pre-wink delay */
WORD ringontime; /* (ms) ring tone ON time */
WORD ringofftime; /* (ms) ring tone OFF time */
WORD busyontime; /* (ms) busy tone ON time */
WORD busyofftime; /* (ms) busy tone OFF time */
WORD reorderontime; /* (ms) reorder tone ON */
WORD reorderofftime; /* (ms) reorder tone OFF */
WORD wait1stdigittime; /* (ms) waiting until first digit comes */
WORD waitfordigitstime; /* (ms) waiting until N-th digit comes */
/* outbound only: */
WORD winkwaittime; /* (ms) max time to wait for the wink */
WORD minwinktime; /* (ms) min duration of the wink */
WORD maxwinktime; /* (ms) max duration of the wink */
WORD predialtime; /* (ms) post wink/pre-dial delay */
WORD mfkpstontime; /* (ms) duration of MF KP,ST on time */
WORD mfkpstofftime; /* (ms) duration of MF KP,ST off time */
WORD mfkpstampl; /* amplitude of MF KP,ST */
WORD releaseguardtime; /* (ms) duration before next call */
} ADI_WNK_PARMS;
See Appendix D for more details about parameters, including default values.

Parsing DID digits for ANI

Some incoming trunks deliver both calling ID (ANI) and called ID in a single burst of digits. There may be a special digit such as '*' separating the two number strings. You can use the wink-start or DID protocol with these trunks.

To analyze caller ID data:

  1. Set the numdigits parameter in the protocol's parameter structure to the total number of digits expected, including the separator character.

    
    
  2. After an incoming call arrives, retrieve the digits from the ADI_CALL_STATUS structure with adiGetCallStatus. The entire string will be in the calledaddr field of the status structure.

    
     



(Page 9 of 9 in this chapter)


Tech_Support@nmss.com
Copyright © 1996, Natural MicroSystems, Inc. All rights reserved.