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