public class TddModeCommand extends AbstractAgiCommand
Returns 1 if successful, or 0 if channel is not TDD-capable.
| Constructor and Description |
|---|
TddModeCommand(String mode)
Creates a new TDDModeCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getMode()
Returns the mode to set.
|
void |
setMode(String mode)
Sets the mode to set.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic TddModeCommand(String mode)
mode - the mode to set, this can be one of "on", "off", "mate" or
"tdd".public String getMode()
public void setMode(String mode)
mode - the mode to set, this can be one of "on", "off", "mate" or
"tdd".public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2020. All rights reserved.