AsterNet Class Library (Sandcastle documentation)

| ManagerEvent Class

Abstract base class for all Events that can be received from the Asterisk server.
Events contain data pertaining to an event generated from within the Asterisk core or an extension module.
There is one conrete subclass of ManagerEvent per each supported Asterisk Event. Channel / Privilege / UniqueId are not common to all events and should be moved to derived event classes.
Inheritance Hierarchy
System
Object
System
EventArgs
AsterNET.Manager.Event
ManagerEvent
More...

Namespace: AsterNET.Manager.Event
Assembly: AsterNET (in AsterNET.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
VB
C++
F#
Copy

    public abstract class ManagerEvent : EventArgs,
    	IParseSupport

    Public MustInherit Class ManagerEvent
    	Inherits EventArgs
    	Implements IParseSupport

    public ref class ManagerEvent abstract : public EventArgs,
    	IParseSupport

    [<AbstractClassAttribute>]
    type ManagerEvent =
        class
            inherit EventArgs
            interface IParseSupport
        end

The ManagerEvent type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| ManagerEvent | Creates a new ManagerEvent. Source already set.
| ManagerEvent(ManagerConnection) | Creates a new ManagerEvent

Top
Methods

| Name | Description
--- | --- | ---
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| Parse | Unknown properties parser
| ParseSpecial | Unknown properties parser.
| ToString | Convert all properties to string (Overrides Object ToString .)

Top
Properties

| Name | Description
--- | --- | ---
| Attributes | Store all unknown (without setter) keys from manager event. Use in default Parse method Parse(String, String)
| Channel | Get/Set the name of the channel.
| DateReceived | Get/Set the point in time this event was received from the Asterisk server. Pseudo events that are not directly received from the asterisk server (for example ConnectEvent and DisconnectEvent) may return null.
| Privilege | Get/Set the AMI authorization class of this event. This is one or more of system, call, log, verbose, command, agent or user. Multiple privileges are separated by comma. Note: This property is not available from Asterisk 1.0 servers.
| Server | Specify a server to which to send your commands (x.x.x.x or hostname). This should match the server name specified in your config file's "host" entry. If you do not specify a server, the proxy will pick the first one it finds -- fine in single-server configurations.
| Source | The ManagerConnection the Event was sourced from.
| Timestamp | Returns the timestamp for this event. The timestamp property is available in Asterisk since 1.4 if enabled in manager.conf by setting timestampevents = yes. In contains the time the event was generated in seconds since the epoch.
| UniqueId | Get/Set the unique id of the channel.

Top
See Also

#### Reference

AsterNET.Manager.Event Namespace
Inheritance Hierarchy
System
Object
System
EventArgs
AsterNET.Manager.Event
ManagerEvent
AsterNET.Manager.Event
AbstractAgentVariables
AsterNET.Manager.Event
AbstractChannelEvent
AsterNET.Manager.Event
AbstractConfbridgeEvent
AsterNET.Manager.Event
AbstractMeetmeEvent
AsterNET.Manager.Event
AbstractParkedCallEvent
AsterNET.Manager.Event
AbstractQueueMemberEvent
AsterNET.Manager.Event
AgentCallbackLoginEvent
AsterNET.Manager.Event
AgentCallbackLogoffEvent
AsterNET.Manager.Event
AgentLoginEvent
AsterNET.Manager.Event
AgentLogoffEvent
AsterNET.Manager.Event
AGIExecEvent
AsterNET.Manager.Event
AlarmClearEvent
AsterNET.Manager.Event
AlarmEvent
AsterNET.Manager.Event
AsyncAGIEvent
AsterNET.Manager.Event
AttendedTransferEvent
AsterNET.Manager.Event
BlindTransferEvent
AsterNET.Manager.Event
BridgeActivityEvent
AsterNET.Manager.Event
BridgeEvent
AsterNET.Manager.Event
BridgeStateEvent
AsterNET.Manager.Event
CdrEvent
AsterNET.Manager.Event
ChannelReloadEvent
AsterNET.Manager.Event
ChannelUpdateEvent
AsterNET.Manager.Event
ConnectionStateEvent
AsterNET.Manager.Event
DialEvent
AsterNET.Manager.Event
DNDStateEvent
AsterNET.Manager.Event
DTMFEvent
AsterNET.Manager.Event
ExtensionStatusEvent
AsterNET.Manager.Event
FailedACLEvent
AsterNET.Manager.Event
HoldedCallEvent
AsterNET.Manager.Event
HoldEvent
AsterNET.Manager.Event
JabberEvent
AsterNET.Manager.Event
JitterBufStatsEvent
AsterNET.Manager.Event
LogChannelEvent
AsterNET.Manager.Event
MessageWaitingEvent
AsterNET.Manager.Event
MobileStatusEvent
AsterNET.Manager.Event
ModuleLoadReportEvent
AsterNET.Manager.Event
MonitorStartEvent
AsterNET.Manager.Event
MonitorStopEvent
AsterNET.Manager.Event
NewAccountCodeEvent
AsterNET.Manager.Event
NewCallerIdEvent
AsterNET.Manager.Event
NewExtenEvent
AsterNET.Manager.Event
PeerStatusEvent
AsterNET.Manager.Event
PRIEvent
AsterNET.Manager.Event
QueueCallerAbandonEvent
AsterNET.Manager.Event
QueueEvent
AsterNET.Manager.Event
RegistryEvent
AsterNET.Manager.Event
RenameEvent
AsterNET.Manager.Event
ResponseEvent
AsterNET.Manager.Event
RTCPReceivedEvent
AsterNET.Manager.Event
RTCPSentEvent
AsterNET.Manager.Event
RTPReceiverStatEvent
AsterNET.Manager.Event
RTPSenderStatEvent
AsterNET.Manager.Event
ShowDialPlanCompleteEvent
AsterNET.Manager.Event
TransferEvent
AsterNET.Manager.Event
UnholdEvent
AsterNET.Manager.Event
UnknownEvent
AsterNET.Manager.Event
UserEvent
AsterNET.Manager.Event
VarSetEvent