public class SendTextCommand extends AbstractAgiCommand
Most channels do not support the transmission of text.
Returns 0 if text is sent, or if the channel does not support text transmission. Returns -1 only on error/hangup.
| Constructor and Description |
|---|
SendTextCommand(String text)
Creates a new SendTextCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getText()
Returns the text to send.
|
void |
setText(String text)
Sets the text to send.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic SendTextCommand(String text)
text - the text to send.public String getText()
public void setText(String text)
text - the text to send.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2022. All rights reserved.