public abstract class ManagerEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
protected String |
callerIdName |
protected String |
callerIdNum |
protected Integer |
channelState |
protected String |
channelStateDesc |
protected String |
connectedLineName |
protected String |
connectedLineNum |
protected String |
context |
protected String |
exten |
protected Integer |
priority |
source| Constructor and Description |
|---|
ManagerEvent(Object source) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendPropertyIfNotNull(StringBuilder sb,
String property,
Object value) |
String |
getCallerIdName()
Returns the Caller ID name of the caller's channel.
|
String |
getCallerIdNum() |
Integer |
getChannelState() |
String |
getChannelStateDesc() |
String |
getConnectedLineName() |
String |
getConnectedLineNum() |
String |
getContext() |
Date |
getDateReceived()
Returns the point in time this event was received from the Asterisk server.
|
String |
getExten() |
String |
getFile()
Returns the name of the file in Asterisk's source code that triggered
this event.
|
String |
getFunc()
Returns the name of the C function in Asterisk's source code that
triggered this event.
|
Integer |
getLine()
Returns the line number in Asterisk's source code where this event was
triggered.
|
Integer |
getPriority() |
String |
getPrivilege()
Returns the AMI authorization class of this event.
|
Integer |
getSequenceNumber()
Returns the sequence numbers of this event.
|
String |
getServer()
Returns the name of the Asterisk server from which this event has been
received.
|
String |
getSystemName() |
Double |
getTimestamp()
Returns the timestamp for this event.
|
void |
setCallerIdName(String callerIdName) |
void |
setCallerIdNum(String callerIdNum) |
void |
setChannelState(Integer channelState) |
void |
setChannelStateDesc(String channelStateDesc) |
void |
setConnectedLineName(String connectedLineName) |
void |
setConnectedLineNum(String connectedLineNum) |
void |
setContext(String context) |
void |
setDateReceived(Date dateReceived)
Sets the point in time this event was received from the asterisk server.
|
void |
setExten(String exten) |
void |
setFile(String file) |
void |
setFunc(String func) |
void |
setLine(Integer line) |
void |
setPriority(Integer priority) |
void |
setPrivilege(String privilege)
Sets the AMI authorization class of this event.
|
void |
setSequenceNumber(Integer sequenceNumber) |
void |
setServer(String server)
Sets the name of the Asterisk server from which this event has been
received.
|
void |
setSystemName(String systemName) |
void |
setTimestamp(Double timestamp)
Sets the timestamp for this event.
|
String |
toJsonString() |
String |
toString() |
getSourceprotected String callerIdName
protected String callerIdNum
protected Integer channelState
protected String channelStateDesc
protected String connectedLineName
protected String connectedLineNum
protected String context
protected String exten
protected Integer priority
public ManagerEvent(Object source)
protected void appendPropertyIfNotNull(StringBuilder sb, String property, Object value)
public String getCallerIdName()
public String getCallerIdNum()
public Integer getChannelState()
public String getChannelStateDesc()
public String getConnectedLineName()
public String getConnectedLineNum()
public String getContext()
public Date getDateReceived()
null.public String getExten()
public String getFile()
pbx.c.
This property is only available if debugging for the Manager API has been
turned on in Asterisk. This can be done by calling
manager debug on on Asterisk's command line interface or by
adding debug=on to Asterisk's manager.conf.
This feature is availble in Asterisk since 1.6.0.
public String getFunc()
pbx_builtin_setvar_helper
This property is only available if debugging for the Manager API has been
turned on in Asterisk. This can be done by calling
manager debug on on Asterisk's command line interface or by
adding debug=on to Asterisk's manager.conf.
This feature is availble in Asterisk since 1.6.0.
public Integer getLine()
This property is only available if debugging for the Manager API has been
turned on in Asterisk. This can be done by calling
manager debug on on Asterisk's command line interface or by
adding debug=on to Asterisk's manager.conf.
This feature is availble in Asterisk since 1.6.0.
public Integer getPriority()
public String getPrivilege()
public Integer getSequenceNumber()
This property is only available if debugging for the Manager API has been
turned on in Asterisk. This can be done by calling
manager debug on on Asterisk's command line interface or by
adding debug=on to Asterisk's manager.conf.
This feature is availble in Asterisk since 1.6.0.
public final String getServer()
null when directly connected to an
Asterisk server instead of AstManProxy.public String getSystemName()
public final Double getTimestamp()
manager.conf by setting timestampevents = yes. public void setCallerIdName(String callerIdName)
public void setCallerIdNum(String callerIdNum)
public void setChannelState(Integer channelState)
public void setChannelStateDesc(String channelStateDesc)
public void setConnectedLineName(String connectedLineName)
public void setConnectedLineNum(String connectedLineNum)
public void setContext(String context)
public void setDateReceived(Date dateReceived)
dateReceived - time this event was received from the asterisk serverpublic void setExten(String exten)
public void setFile(String file)
public void setFunc(String func)
public void setLine(Integer line)
public void setPriority(Integer priority)
public void setPrivilege(String privilege)
privilege - privilegepublic void setSequenceNumber(Integer sequenceNumber)
public final void setServer(String server)
server - the name of the Asterisk server from which this event has
been received.public void setSystemName(String systemName)
public final void setTimestamp(Double timestamp)
timestamp - the timestamp to set.public String toJsonString()
public String toString()
toString in class EventObjectCopyright © 2018. All rights reserved.