public class SayAlphaCommand extends AbstractAgiCommand
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 |
|---|
SayAlphaCommand(String text)
Creates a new SayAlphaCommand.
|
SayAlphaCommand(String text,
String escapeDigits)
Creates a new SayAlphaCommand.
|
| 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 SayAlphaCommand(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–2021. All rights reserved.