The WaitForDtmfGeneratorToneCompletion API procedure can be used to wait until a DTMF generator fully completes generating all DTMF tone data for a specified duration. For additional information, see the remarks section below.

Namespace:  LanScape
Assembly:  LMEVoipManaged (in LMEVoipManaged.dll) Version: 6.0.5226.26700

Syntax

C#
public void WaitForDtmfGeneratorToneCompletion()
Visual Basic (Declaration)
Public Sub WaitForDtmfGeneratorToneCompletion
Visual C++
public:
void WaitForDtmfGeneratorToneCompletion()
J#
public void WaitForDtmfGeneratorToneCompletion()

Return Value

Nothing.

Remarks

For example: Lets assume you want to generate 1 second of DTMF data for DTMF digit '1'. Pseudocode would look something like the following:

CopyC#
VoipMediaEngine.DtmfGenerator DtmfGenerator = new VoipMediaEngine.DtmfGenerator();

// create a DTMF generator.
DtmfGenerator.CreateDtmfGenerator(...);
.
.
.

// start DTMF generation for digit '1 for 1 second'. Your callback procedure will be called as soon as DTMF
// data blocks are created. The DTMF generator will automatically shut off when it is done.
DtmfGenerator.StartDtmfGeneratorTone(DtmfTone1, 1000);

// block until all DTMF data has been created.
DtmfGenerator.WaitForDtmfGeneratorToneCompletion();
.
.
.

// destroy the DTMF generator.
DtmfGenerator.DestroyDtmfGenerator(DtmfGenerator.);

DtmfGenerator = null;

See Also