AddTapi.NET Developer's Manual
GenerateDigits Method (digits)
NamespacesTraysoft.AddTapiTapiCallGenerateDigits(String)
Initiates the generation of the specified digits on the call.
Declaration Syntax
C#Visual BasicVisual C++
public void GenerateDigits(
	string digits
)
Public Sub GenerateDigits ( _
	digits As String _
)
public:
void GenerateDigits(
	String^ digits
)
Parameters
digits (String)
A string that contains the digits to be generated.
Remarks
This method generates the specified digits as inband tones using DTMF signaling. Valid digits are 0 through 9, '*', '#', 'A', 'B', 'C', and 'D'. In addition, the comma (,) is also a valid character. A comma injects an extra delay between the signaling of the previous and next digits it separates. The duration of this pause is hardware dependent (usually 500 ms). Multiple commas can be used to inject longer pauses. The exclamation (!) is a valid character. This character causes a "hookflash" operation (one-half second onhook, followed by one-half second offhook before continuing). The application can use GenerateDigits to perform call transfer by generating a sequence of digits that instructs your PBX to transfer a call. Please note that GenerateDigits is an asynchronous operation. GenerateDigits queues the digits to generate and returns immediately. The telephony hardware will start digit generation after the method returns.
Exceptions
ExceptionCondition
TapiDisconnectExceptionThe call has been already disconnected.
TapiExceptionAddTapi.NET cannot generate the digits because a TAPI error occurred.

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