@phone::clearDtmf

Purges pending DTMF digits.

When a key is pressed on a phone keypad, it is stored in an internal buffer until retrieved or cleared in the script. If a key exists in the buffer, play statements are ignored.

If a key is pressed during a play statement, the recording is terminated immediately. This allows Users to fast-forward past recordings with which they are already familiar.

It is therefore good practice to clear the DTMF buffer before a prompt is played requesting a response.

Syntax:

@phone::clearDtmf()

Parameters:

None

Returns:

None

Example:

This example uses the clearDtmf() method to clear the DTMF buffer before requesting a response:

@phone::clearDtmf()

@phone::play("phrase", "ENTER PASSWORD")

$pwd = @phone::getDigits(10,10)