|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.asteriskjava.fastagi.command.AbstractAgiCommand
org.asteriskjava.fastagi.command.GetVariableCommand
public class GetVariableCommand
Returns the value of the given channel varible.
Since Asterisk 1.2 you can also use this command to use custom Asterisk functions. Syntax is "func(args)".
Returns 0 if the variable is not set. Returns 1 if the variable is set and returns the variable in parenthesis.
Example return code: 200 result=1 (testvariable)
| Constructor Summary | |
|---|---|
GetVariableCommand(java.lang.String variable)
Creates a new GetVariableCommand. |
|
| Method Summary | |
|---|---|
java.lang.String |
buildCommand()
Returns a string suitable to be sent to asterisk. |
java.lang.String |
getVariable()
Returns the name of the variable to retrieve. |
void |
setVariable(java.lang.String variable)
Sets the name of the variable to retrieve. |
| Methods inherited from class org.asteriskjava.fastagi.command.AbstractAgiCommand |
|---|
escapeAndQuote, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GetVariableCommand(java.lang.String variable)
variable - the name of the variable to retrieve.| Method Detail |
|---|
public java.lang.String getVariable()
public void setVariable(java.lang.String variable)
Since Asterisk 1.2 you can also use custom dialplan functions (like "func(args)") as variable.
variable - the name of the variable to retrieve.public java.lang.String buildCommand()
AgiCommand
buildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommand
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||