Click or drag to resize
AgentsEvent Properties

The AgentsEvent type exposes the following members.

Properties
  NameDescription
Public propertyActionId
Get/Set the action id of the ManagerAction that caused this event.
(Inherited from ResponseEvent.)
Public propertyAgent
Get/Set the agentid.
Public propertyAttributes
Store all unknown (without setter) keys from manager event.
Use in default Parse method [!:Parse(string key, string value)].
(Inherited from ManagerEvent.)
Public propertyChannel
Get/Set the name of the channel.
(Inherited from ManagerEvent.)
Public propertyDateReceived
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.
(Inherited from ManagerEvent.)
Public propertyInternalActionId
Get/Set the internal action id of the ManagerAction that caused this event.
(Inherited from ResponseEvent.)
Public propertyLoggedInChan
Get/Set the name of channel this agent logged in from or "n/a" if the agent is not logged in.
Public propertyLoggedInTime
Get/Set the time (in seconds since 01/01/1970) when the agent logged in or 0 if the user is not logged.
Public propertyName
Get/Set the name of this agent.
Public propertyPrivilege
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.
(Inherited from ManagerEvent.)
Public propertyServer
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.
(Inherited from ManagerEvent.)
Public propertySource
Event source.
(Inherited from ManagerEvent.)
Public propertyStatus
Get/Set the status of this agent.
This is one of
"AGENT_LOGGEDOFF"
Agent isn't logged in
"AGENT_IDLE"
Agent is logged in, and waiting for call
"AGENT_ONCALL"
Agent is logged in, and on a call
"AGENT_UNKNOWN"
Don't know anything about agent. Shouldn't ever get this.
Public propertyTalkingTo
Get/Set the numerical Caller*ID of the channel this agent is talking toor "n/a" if this agent is talking to nobody.
Public propertyTimestamp
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.
(Inherited from ManagerEvent.)
Public propertyUniqueId
Get/Set the unique id of the channel.
(Inherited from ManagerEvent.)
Top
See Also