|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.asteriskjava.manager.event.ManagerEvent
org.asteriskjava.manager.event.ResponseEvent
org.asteriskjava.manager.event.StatusEvent
public class StatusEvent
A StatusEvent is triggered for each active channel in response to a StatusAction.
StatusAction
,
Serialized FormField Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
StatusEvent(java.lang.Object source)
|
Method Summary | |
---|---|
java.lang.String |
getAccount()
Deprecated. since 1.0.0, use getAccountCode() instead. |
java.lang.String |
getAccountCode()
Returns the account code of this channel. |
java.lang.String |
getBridgedChannel()
Returns the name of the linked channel if this channel is bridged. |
java.lang.String |
getBridgedUniqueId()
Returns the unique id of the linked channel if this channel is bridged. |
java.lang.String |
getCallerId()
Deprecated. |
java.lang.String |
getCallerIdName()
Returns the Caller*ID Name of this channel. |
java.lang.String |
getCallerIdNum()
Returns the Caller*ID Number of this channel. |
java.lang.String |
getChannel()
Returns the name of this channel. |
java.lang.Integer |
getChannelState()
Returns the state of the channel. |
java.lang.String |
getChannelStateDesc()
Returns the state of the channel as a descriptive text. |
java.lang.String |
getContext()
|
java.lang.String |
getExtension()
|
java.lang.String |
getLink()
Deprecated. as of 1.0.0, use getBridgedChannel() instead. |
java.lang.Integer |
getPriority()
|
java.lang.Integer |
getSeconds()
Returns the number of elapsed seconds. |
java.lang.String |
getState()
Deprecated. use getChannelStateDesc() instead. |
java.lang.String |
getUniqueId()
Returns the unique id of this channel. |
java.util.Map<java.lang.String,java.lang.String> |
getVariables()
Returns the channel variables if the StatusAction.setVariables(String)
property has been set. |
void |
setAccount(java.lang.String account)
Sets the account code of this channel. |
void |
setAccountCode(java.lang.String accountCode)
Sets the account code of this channel. |
void |
setBridgedChannel(java.lang.String bridgedChannel)
Sets the name of the linked channel. |
void |
setBridgedUniqueId(java.lang.String bridgedUniqueId)
Sets the unique id of the linked channel if this channel is bridged. |
void |
setCallerId(java.lang.String callerIdNum)
Sets the Caller*ID Number of this channel. |
void |
setCallerIdName(java.lang.String callerIdName)
Sets the Caller*ID Name of this channel. |
void |
setCallerIdNum(java.lang.String callerIdNum)
Sets the Caller*ID Number of this channel. |
void |
setChannel(java.lang.String channel)
Sets the name of this channel. |
void |
setChannelState(java.lang.Integer channelState)
Sets the state of the channel. |
void |
setChannelStateDesc(java.lang.String channelStateDesc)
|
void |
setContext(java.lang.String context)
|
void |
setExtension(java.lang.String extension)
|
void |
setLink(java.lang.String link)
Sets the name of the linked channel. |
void |
setPriority(java.lang.Integer priority)
|
void |
setSeconds(java.lang.Integer seconds)
Sets the number of elapsed seconds. |
void |
setState(java.lang.String state)
|
void |
setUniqueId(java.lang.String uniqueId)
Sets the unique id of this channel. |
void |
setVariables(java.util.Map<java.lang.String,java.lang.String> variables)
Sets the channel variables. |
Methods inherited from class org.asteriskjava.manager.event.ResponseEvent |
---|
getActionId, getInternalActionId, setActionId, setInternalActionId |
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent |
---|
getDateReceived, getPrivilege, getServer, getTimestamp, setDateReceived, setPrivilege, setServer, setTimestamp, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StatusEvent(java.lang.Object source)
Method Detail |
---|
public java.lang.String getChannel()
public void setChannel(java.lang.String channel)
channel
- the name of this channel.public java.lang.String getCallerId()
This property is deprecated as of Asterisk 1.4, use getCallerIdNum()
instead.
null
if none is available.public void setCallerId(java.lang.String callerIdNum)
This property is deprecated as of Asterisk 1.4.
callerIdNum
- the Caller*ID Number to set.public java.lang.String getCallerIdNum()
null
if none is available.public void setCallerIdNum(java.lang.String callerIdNum)
callerIdNum
- the Caller*ID Number to set.public java.lang.String getCallerIdName()
null
if none is available.public void setCallerIdName(java.lang.String callerIdName)
callerIdName
- the Caller*ID Name of this channel.public java.lang.String getAccountCode()
public void setAccountCode(java.lang.String accountCode)
accountCode
- the account code of this channel.public java.lang.String getAccount()
getAccountCode()
instead.
public void setAccount(java.lang.String account)
Asterisk versions up to 1.4 use the "Account" property instead of "AccountCode".
account
- the account code of this channel.public java.lang.Integer getChannelState()
For Asterisk versions prior to 1.6 (that do not send the numeric value) it is derived from the descriptive text.
public void setChannelState(java.lang.Integer channelState)
channelState
- the state of the channel.public java.lang.String getChannelStateDesc()
public void setChannelStateDesc(java.lang.String channelStateDesc)
public java.lang.String getState()
getChannelStateDesc()
instead.
public void setState(java.lang.String state)
public java.lang.String getContext()
public void setContext(java.lang.String context)
public java.lang.String getExtension()
public void setExtension(java.lang.String extension)
public java.lang.Integer getPriority()
public void setPriority(java.lang.Integer priority)
public java.lang.Integer getSeconds()
public void setSeconds(java.lang.Integer seconds)
seconds
- the number of elapsed seconds.public java.lang.String getBridgedChannel()
public void setBridgedChannel(java.lang.String bridgedChannel)
bridgedChannel
- the name of the linked channel if this channel is bridged.public java.lang.String getLink()
getBridgedChannel()
instead.
public void setLink(java.lang.String link)
Asterisk versions up to 1.4 use "Link" instead of "BridgedChannel".
link
- the name of the linked channel if this channel is bridged.public java.lang.String getBridgedUniqueId()
Available since Asterisk 1.6.
public void setBridgedUniqueId(java.lang.String bridgedUniqueId)
Available since Asterisk 1.6.
bridgedUniqueId
- the unique id of the linked channel if this channel is bridged.public java.lang.String getUniqueId()
public void setUniqueId(java.lang.String uniqueId)
uniqueId
- the unique id of this channel.public java.util.Map<java.lang.String,java.lang.String> getVariables()
StatusAction.setVariables(String)
property has been set.Available since Asterisk 1.6
public void setVariables(java.util.Map<java.lang.String,java.lang.String> variables)
Available since Asterisk 1.6
variables
- the channel variables.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |