public class StatusEvent extends ResponseEvent
StatusAction
,
Serialized Formsource
Constructor and Description |
---|
StatusEvent(Object source) |
Modifier and Type | Method and Description |
---|---|
String |
getAccount()
Deprecated.
since 1.0.0, use
getAccountCode() instead. |
String |
getAccountCode()
Returns the account code of this channel.
|
String |
getBridgedChannel()
Returns the name of the linked channel if this channel is bridged.
|
String |
getBridgedUniqueId()
Returns the unique id of the linked channel if this channel is bridged.
|
String |
getCallerId()
Deprecated.
|
String |
getCallerIdName()
Returns the Caller*ID Name of this channel.
|
String |
getCallerIdNum()
Returns the Caller*ID Number of this channel.
|
String |
getChannel()
Returns the name of this channel.
|
Integer |
getChannelState()
Returns the state of the channel.
|
String |
getChannelStateDesc()
Returns the state of the channel as a descriptive text.
|
String |
getContext() |
String |
getExtension() |
String |
getLink()
Deprecated.
as of 1.0.0, use
getBridgedChannel() instead. |
Integer |
getPriority() |
Integer |
getSeconds()
Returns the number of elapsed seconds.
|
String |
getState()
Deprecated.
use
getChannelStateDesc() instead. |
String |
getUniqueId()
Returns the unique id of this channel.
|
Map<String,String> |
getVariables()
Returns the channel variables if the
StatusAction.setVariables(String)
property has been set. |
void |
setAccount(String account)
Sets the account code of this channel.
|
void |
setAccountCode(String accountCode)
Sets the account code of this channel.
|
void |
setBridgedChannel(String bridgedChannel)
Sets the name of the linked channel.
|
void |
setBridgedUniqueId(String bridgedUniqueId)
Sets the unique id of the linked channel if this channel is bridged.
|
void |
setCallerId(String callerIdNum)
Sets the Caller*ID Number of this channel.
|
void |
setCallerIdName(String callerIdName)
Sets the Caller*ID Name of this channel.
|
void |
setCallerIdNum(String callerIdNum)
Sets the Caller*ID Number of this channel.
|
void |
setChannel(String channel)
Sets the name of this channel.
|
void |
setChannelState(Integer channelState)
Sets the state of the channel.
|
void |
setChannelStateDesc(String channelStateDesc) |
void |
setContext(String context) |
void |
setExtension(String extension) |
void |
setLink(String link)
Sets the name of the linked channel.
|
void |
setPriority(Integer priority) |
void |
setSeconds(Integer seconds)
Sets the number of elapsed seconds.
|
void |
setState(String state) |
void |
setUniqueId(String uniqueId)
Sets the unique id of this channel.
|
void |
setVariables(Map<String,String> variables)
Sets the channel variables.
|
getActionId, getInternalActionId, setActionId, setInternalActionId
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, setServer, setTimestamp, toString
getSource
public StatusEvent(Object source)
public String getChannel()
public void setChannel(String channel)
channel
- the name of this channel.@Deprecated public String getCallerId()
This property is deprecated as of Asterisk 1.4, use getCallerIdNum()
instead.
null
if none is available.public void setCallerId(String callerIdNum)
This property is deprecated as of Asterisk 1.4.
callerIdNum
- the Caller*ID Number to set.public String getCallerIdNum()
null
if none is available.public void setCallerIdNum(String callerIdNum)
callerIdNum
- the Caller*ID Number to set.public String getCallerIdName()
null
if none is available.public void setCallerIdName(String callerIdName)
callerIdName
- the Caller*ID Name of this channel.public String getAccountCode()
public void setAccountCode(String accountCode)
accountCode
- the account code of this channel.@Deprecated public String getAccount()
getAccountCode()
instead.public void setAccount(String account)
Asterisk versions up to 1.4 use the "Account" property instead of "AccountCode".
account
- the account code of this channel.public 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(Integer channelState)
channelState
- the state of the channel.public String getChannelStateDesc()
public void setChannelStateDesc(String channelStateDesc)
@Deprecated public String getState()
getChannelStateDesc()
instead.public void setState(String state)
public String getContext()
public void setContext(String context)
public String getExtension()
public void setExtension(String extension)
public Integer getPriority()
public void setPriority(Integer priority)
public Integer getSeconds()
public void setSeconds(Integer seconds)
seconds
- the number of elapsed seconds.public String getBridgedChannel()
public void setBridgedChannel(String bridgedChannel)
bridgedChannel
- the name of the linked channel if this channel is bridged.@Deprecated public String getLink()
getBridgedChannel()
instead.public void setLink(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 String getBridgedUniqueId()
Available since Asterisk 1.6.
public void setBridgedUniqueId(String bridgedUniqueId)
Available since Asterisk 1.6.
bridgedUniqueId
- the unique id of the linked channel if this channel is bridged.public String getUniqueId()
public void setUniqueId(String uniqueId)
uniqueId
- the unique id of this channel.public Map<String,String> getVariables()
StatusAction.setVariables(String)
property has been set.Available since Asterisk 1.6
Copyright © 2004–2016. All rights reserved.