Click or drag to resize
GetVariableCommand Class
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)
Inheritance Hierarchy

Namespace: AsterNET.FastAGI.Command
Assembly: AsterNET (in AsterNET.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class GetVariableCommand : AGICommand

The GetVariableCommand type exposes the following members.

Constructors
  NameDescription
Public methodGetVariableCommand
Creates a new GetVariableCommand.
Top
Methods
  NameDescription
Public methodBuildCommand (Overrides AGICommandBuildCommand.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodEscapeAndQuote (Inherited from AGICommand.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString (Inherited from AGICommand.)
Top
Properties
  NameDescription
Public propertyVariable
Get/Set the name of the variable to retrieve.
Since Asterisk 1.2 you can also use custom dialplan functions (like "func(args)") as variable.
Top
See Also