public class SayPhoneticCommand extends AbstractAgiCommand
Say a given character string with phonetics, returning early if any of the given DTMF digits are received on the channel.
Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit if one was pressed or -1 on error/hangup.
| Constructor and Description |
|---|
SayPhoneticCommand(String text)
Creates a new SayPhoneticCommand.
|
SayPhoneticCommand(String text,
String escapeDigits)
Creates a new SayPhoneticCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getEscapeDigits()
Returns the digits that allow the user to interrupt this command.
|
String |
getText()
Returns the text to say.
|
void |
setEscapeDigits(String escapeDigits)
Sets the digits that allow the user to interrupt this command.
|
void |
setText(String text)
Sets the text to say.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic SayPhoneticCommand(String text)
text - the text to say.public String getText()
public void setText(String text)
text - the text to say.public String getEscapeDigits()
public void setEscapeDigits(String escapeDigits)
escapeDigits - the text that allow the user to interrupt this command or null for none.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2022. All rights reserved.