AddTapi.NET Developer's Manual
WaitForDigit Method (timeoutSeconds)
NamespacesTraysoft.AddTapiTapiCallWaitForDigit(Int32)
Waits until either a DTMF digit has been detected or the specified time interval has elapsed.
Declaration Syntax
C#Visual BasicVisual C++
public string WaitForDigit(
	int timeoutSeconds
)
Public Function WaitForDigit ( _
	timeoutSeconds As Integer _
) As String
public:
String^ WaitForDigit(
	int timeoutSeconds
)
Parameters
timeoutSeconds (Int32)
Timeout period in seconds.
Return Value
A string that contains detected digit, if any. This method returns a null reference (Nothing in Visual Basic) if no digits were detected within the specified time interval.
Remarks
This method detects DTMF digits (buttons) pressed by remote party on a touch-tone phone. WaitForDigit ignores the digits received before your application called this method.
Exceptions
ExceptionCondition
TapiDisconnectExceptionThe call has been disconnected while waiting for a digit.
See Also

Assembly: Traysoft.AddTapi (Module: Traysoft.AddTapi)