LINE_GATHERDIGITS

The LINE_GATHERDIGITS message is sent to the LINEEVENT callback function when the current buffered digit gathering request has terminated. This message is not sent when digit gathering is canceled. The digit buffer can be examined after this message has been received. The effect of examining the digit buffer before this message has been received is undefined.

LINE_GATHERDIGITS
htLine = (HTAPILINE) hLineDevice;
htCall = (HTAPICALL) hCallDevice;
dwMsg = (DWORD) LINE_GATHERDIGITS;
dwParam1 = (DWORD) LineGatherTerminate;
dwParam2 = (DWORD) dwEndToEndID;
dwParam3 = (DWORD) dwTickCount;
 

Parameters

htLine
The TAPI opaque object handle to the line device.
htCall
The TAPI opaque object handle to the call device.
dwMsg
The value LINE_GATHERDIGITS.
dwParam1
Specifies the reason why digit gathering was terminated. This parameter can be one of the following LINEGATHERTERM_ constants:
LINEGATHERTERM_BUFFERFULL
The requested number of digits has been gathered. The buffer is full.
LINEGATHERTERM_TERMDIGIT
One of the termination digits matched a received digit. The matched termination digit is the last digit in the buffer.
LINEGATHERTERM_FIRSTTIMEOUT
The first digit timeout expired. The buffer contains no digits.
LINEGATHERTERM_INTERTIMEOUT
The inter-digit timeout expired. The buffer contains at least one digit.
LINEGATHERTERM_CANCEL
The request was canceled by a subsequent TSPI_lineGatherDigits request, or because the call terminated.
dwParam2
The dwEndToEndID that was specified in the original TSPI_lineGatherDigits request for which this is the final result.
dwParam3
Service providers shall insert into dwParam3 the "tick count" (number of milliseconds since Windows started), obtained from GetTickCount, at which the digit gathering completed.

Remarks

Calling TSPI_lineGatherDigits while digit gathering is in progress cancels the current digit gathering request and starts a new one, but does not result in the service provider sending this message.

The corresponding message at the TAPI level does not include an end-to-end identifier. End-to-end marking is only done at the TSPI level.

See Also

LINEGATHERTERM_ Constants, TSPI_lineGatherDigits