Waits for DTMF input and returns the digit(s) keyed by the user in a form of an event within the EventReceived handler.

Namespace:  Inkostar
Assembly:  DiaSpringWrapper (in DiaSpringWrapper.dll)
Version: 0.0.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public virtual void GatherDigits(
	string ChannelName,
	int GatherDigitTimeout,
	DiaSpringWrapperCommon..::.DigitType Digit
)
Public Overridable Sub GatherDigits ( _
	ChannelName As String, _
	GatherDigitTimeout As Integer, _
	Digit As DiaSpringWrapperCommon..::.DigitType _
)
public:
virtual void GatherDigits(
	String^ ChannelName, 
	int GatherDigitTimeout, 
	DiaSpringWrapperCommon..::.DigitType Digit
)

Parameters

ChannelName
String
The Channel name on the Dialogic board on which to gather the digit.
GatherDigitTimeout
Int32
The timeout period for gathering the digit. The timeout occurs when the condition digit is not met within the specified timeout value.
Digit
DiaSpringWrapperCommon..::.DigitType
The expected digit. The function will return as soon as the specified digit is received.

Remarks

Use this overloaded method when only one specific digit is expected.

Remarks

This function will fail if invoked before the [device].Open() function.

Examples

Gather digit 5 on the first channel. The timeout period allowed to gather the digit is 3 seconds.
C#: objDevice.GatherDigits("dxxxB1C1", 3, Inkostar.DiaSpringWrapperCommon.DigitType.Five);
VB.NET: objDevice.GatherDigits("dxxxB1C1", 3, Inkostar.DiaSpringWrapperCommon.DigitType.Five)

See Also

Inkostar Namespace