The setttfl instruction sets touch-tone flushing.
Synopsis
setttfl(type.flg)
Description
The setttfl instruction allows the script to change the way TSM handles the touch-tone buffer. Normally, TSM gets rid of any touch tones it has received for the script when the speech buffer is flushed and speech is played. The setttfl instruction disables the TSM action of clearing the touch-tone buffer whenever speech is played.
If the type.flg argument is 1, touch-tone flushing is turned on. If the setttfl instruction is not used, the default condition is to set touch-tone flushing to on.
If type.flg is 0, touch-tone flushing is turned off and playing speech does not cause the touch-tone buffer to be cleared. If touch-tone flushing is turned off and talkoff has been enabled on the channel (using the tflush instruction with the must_hear_flag set to 0), an instruction that normally plays the queued phrases now clears any phrases queued in the phrase buffer. This happens because phrases that are in the buffer are assumed to be part of the prompt that the talkoff touch tones affect. With talkoff enabled, phrases that are already queued are not heard. Instead, the script advances to the appropriate point based on the touch-tone input received.
Example
|
Turn off touch-tone flushing. |
|
Turn on touch-tone flushing (default). |
See also