public class SayDigitsCommand 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 |
|---|
SayDigitsCommand(String digits)
Creates a new SayDigitsCommand.
|
SayDigitsCommand(String digits,
String escapeDigits)
Creates a new SayDigitsCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getDigits()
Returns the digits string to say.
|
String |
getEscapeDigits()
Returns the digits that allow the user to interrupt this command.
|
void |
setDigits(String digits)
Sets the digits to say.
|
void |
setEscapeDigits(String escapeDigits)
Sets the digits that allow the user to interrupt this command.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic SayDigitsCommand(String digits)
digits - the digits to say.public String getDigits()
public void setDigits(String digits)
digits - the digits string to say.public String getEscapeDigits()
public void setEscapeDigits(String escapeDigits)
escapeDigits - the digits 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.