Dtmf
Definition
The Dtmf
verb is used to send Dual-Tone Multi-Frequency (DTMF) tones during a call. DTMF tones are the sounds generated when you press the keys on a telephone keypad.
The Dtmf
verb enters the symbols within its tags. This can be useful when dialing a phone number with an extension.
Values accepted for the Dtmf
verb are: 0
, 1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
, 9
, #
, *
, ,
, and the combinations of these characters. Each comma character defines a 0.5-second delay.
Nesting Rules
- You cannot nest other verbs or nouns within the
Dtmf
verb. - You cannot nest the
Dtmf
verb within other FlexML verbs.
Example
In these sample FlexML instructions, the phone number in the Dial
verb is dialed, and then the characters within the Dtmf
tags are entered. Each comma within the Dtmf
tag is a 0.5
-second delay.
The Dtmf
verb is used to enter the DTMF tones after the call is answered. The Dial
verb has a timeLimit
attribute set to 15
seconds, and the hangupOnStar
attribute is set to true
, which means that if the user presses the star key, the call will be hung up.
<Response>
<Dial timeLimit="15" hangupOnStar="true">
<Number>15162065340</Number>
</Dial>
<Dtmf>,,,,12</Dtmf>
</Response>