|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.fastagi.command.AGICommand net.sf.asterisk.fastagi.command.GetFullVariableCommand
public class GetFullVariableCommand
Returns the value of the given channel varible and understands complex
variable names and builtin variables, unlike the GetVariableCommand.
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 FormConstructor Summary | |
---|---|
GetFullVariableCommand(java.lang.String variable)
Creates a new GetFullVariableCommand. |
|
GetFullVariableCommand(java.lang.String variable,
java.lang.String channel)
Creates a new GetFullVariableCommand. |
Method Summary | |
---|---|
java.lang.String |
buildCommand()
Returns a string suitable to be sent to asterisk. |
java.lang.String |
getChannel()
Returns the the name of the channel. |
java.lang.String |
getVariable()
Returns the name of the variable to retrieve. |
void |
setChannel(java.lang.String channel)
Sets the name of the channel. |
void |
setVariable(java.lang.String variable)
Sets the name of the variable to retrieve. You can also use custom dialplan functions (like "func(args)") as variable. |
Methods inherited from class net.sf.asterisk.fastagi.command.AGICommand |
---|
escapeAndQuote, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GetFullVariableCommand(java.lang.String variable)
variable
- the name of the variable to retrieve.public GetFullVariableCommand(java.lang.String variable, java.lang.String channel)
variable
- the name of the variable to retrieve.channel
- the name of the channel.Method Detail |
---|
public java.lang.String getVariable()
public void setVariable(java.lang.String variable)
variable
- the name of the variable to retrieve.public java.lang.String getChannel()
public void setChannel(java.lang.String channel)
channel
- the name of the channel.public java.lang.String buildCommand()
AGICommand
buildCommand
in class AGICommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |