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 |
toString() |
getSource
protected String connectedLineNum
protected String connectedLineName
protected Integer priority
protected Integer channelState
protected String channelStateDesc
protected String exten
protected String callerIdNum
protected String callerIdName
protected String context
public ManagerEvent(Object source)
public String getCallerIdName()
public void setCallerIdName(String callerIdName)
public String getConnectedLineNum()
public void setConnectedLineNum(String connectedLineNum)
public String getConnectedLineName()
public void setConnectedLineName(String connectedLineName)
public Integer getPriority()
public void setPriority(Integer priority)
public Integer getChannelState()
public void setChannelState(Integer channelState)
public String getChannelStateDesc()
public void setChannelStateDesc(String channelStateDesc)
public String getExten()
public void setExten(String exten)
public String getCallerIdNum()
public void setCallerIdNum(String callerIdNum)
public String getContext()
public void setContext(String context)
public Date getDateReceived()
null
.public void setDateReceived(Date dateReceived)
public String getPrivilege()
public void setPrivilege(String privilege)
public final Double getTimestamp()
manager.conf
by setting timestampevents = yes
.
public final void setTimestamp(Double timestamp)
timestamp
- the timestamp to set.public final String getServer()
null
when directly connected to an
Asterisk server instead of AstManProxy.public final void setServer(String server)
server
- the name of the Asterisk server from which this event has
been received.public String getSystemName()
public void setSystemName(String systemName)
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 void setFile(String file)
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 void setLine(Integer line)
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 void setFunc(String func)
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 void setSequenceNumber(Integer sequenceNumber)
public String toString()
toString
in class EventObject
protected void appendPropertyIfNotNull(StringBuilder sb, String property, Object value)
Copyright © 2004–2022. All rights reserved.