public class DtmfSender
extends java.lang.Object
Constructor and Description |
---|
DtmfSender(long nativeDtmfSender) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInsertDtmf() |
void |
dispose() |
int |
duration() |
boolean |
insertDtmf(java.lang.String tones,
int duration,
int interToneGap)
Queues a task that sends the provided DTMF tones.
|
int |
interToneGap() |
java.lang.String |
tones() |
public boolean canInsertDtmf()
public boolean insertDtmf(java.lang.String tones, int duration, int interToneGap)
If insertDtmf is called on the same object while an existing task for this object to generate DTMF is still running, the previous task is canceled.
tones
- This parameter is treated as a series of characters. The characters 0
through 9, A through D, #, and * generate the associated DTMF tones. The
characters a to d are equivalent to A to D. The character ',' indicates a
delay of 2 seconds before processing the next character in the tones
parameter. Unrecognized characters are ignored.duration
- Indicates the duration in ms to use for each character passed in the tones
parameter. The duration cannot be more than 6000 or less than 70.interToneGap
- Indicates the gap between tones in ms. Must be at least 50 ms but should be
as short as possible.public java.lang.String tones()
public int duration()
public int interToneGap()
public void dispose()
7.0.0