Click or drag to resize
AGIReply Class
Default implementation of the AGIReply interface.
Inheritance Hierarchy
SystemObject
  AsterNET.FastAGIAGIReply

Namespace: AsterNET.FastAGI
Assembly: AsterNET (in AsterNET.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class AGIReply

The AGIReply type exposes the following members.

Constructors
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
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 methodGetAttribute
Returns an additional attribute contained in the reply.
For example the reply to the StreamFileCommand contains an additional endpos attribute indicating the frame where the playback was stopped. This can be retrieved by calling getAttribute("endpos") on the corresponding reply.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetResult
Returns the result, that is the part directly following the "result=" string.
Public methodGetStatus
Returns the status code.
Supported status codes are:
200 Success
510 Invalid or unknown command
520 Invalid command syntax
Public methodGetSynopsis
Returns the synopsis of the command sent if Asterisk expected a different syntax (getStatus() == SC_INVALID_COMMAND_SYNTAX).
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUsage
Returns the usage of the command sent if Asterisk expected a different syntax (getStatus() == SC_INVALID_COMMAND_SYNTAX).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString (Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyExtra
Returns the text in parenthesis contained in this reply.
The meaning of this property depends on the command sent. Sometimes it contains a flag like "timeout" or "hangup" or - in case of the GetVariableCommand - the value of the variable.
Public propertyFirstLine
Public propertyLines
Public propertyResultCode
Returns the return code (the result as int).
Public propertyResultCodeAsChar
Returns the return code as character.
Top
See Also