public class GetFullVariableCommand extends AbstractAgiCommand
You can also use this command to use custom Asterisk functions. Syntax is "func(args)".
Returns 0 if the variable is not set or channel does not exist. Returns 1 if the variable is set and returns the variable in parenthesis.
Available since Asterisk 1.2
Example return code: 200 result=1 (testvariable)
GetVariableCommand,
Serialized Form| Constructor and Description |
|---|
GetFullVariableCommand(String variable)
Creates a new GetFullVariableCommand.
|
GetFullVariableCommand(String variable,
String channel)
Creates a new GetFullVariableCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getChannel()
Returns the the name of the channel.
|
String |
getVariable()
Returns the name of the variable to retrieve.
|
void |
setChannel(String channel)
Sets the name of the channel.
|
void |
setVariable(String variable)
Sets the name of the variable to retrieve.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic GetFullVariableCommand(String variable)
variable - the name of the variable to retrieve.public String getVariable()
public void setVariable(String variable)
You can also use custom dialplan functions (like "func(args)") as variable.
variable - the name of the variable to retrieve.public String getChannel()
public void setChannel(String channel)
channel - the name of the channel.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2022. All rights reserved.