public class StatusEvent extends ResponseEvent
StatusAction
,
Serialized FormactionId
callerIdName, callerIdNum, channelState, channelStateDesc, connectedLineName, connectedLineNum, context, exten, priority
source
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 |
getApplication() |
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 |
getBridgeId() |
String |
getCallerId()
Deprecated.
|
String |
getCallGroup() |
String |
getChannel()
Returns the name of this channel.
|
String |
getData() |
String |
getDnid() |
String |
getEffectiveConnectedLineName() |
String |
getEffectiveConnectedLineNum() |
String |
getExtension() |
String |
getLanguage() |
String |
getLink()
Deprecated.
as of 1.0.0, use
getBridgedChannel() instead. |
String |
getLinkedId() |
String |
getNativeFormats() |
String |
getPickupGroup() |
String |
getReadFormat() |
String |
getReadtrans() |
Integer |
getSeconds()
Returns the number of elapsed seconds.
|
String |
getState()
Deprecated.
use
ManagerEvent.getChannelStateDesc() instead. |
String |
getTimeToHangup() |
String |
getType() |
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. |
String |
getWriteFormat() |
String |
getWritetrans() |
void |
setAccount(String account)
Sets the account code of this channel.
|
void |
setAccountCode(String accountCode)
Sets the account code of this channel.
|
void |
setApplication(String application) |
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 |
setBridgeId(String bridgeid) |
void |
setCallerId(String callerIdNum)
Sets the Caller*ID Number of this channel.
|
void |
setCallGroup(String callGroup) |
void |
setChannel(String channel)
Sets the name of this channel.
|
void |
setData(String data) |
void |
setDnid(String dnid) |
void |
setEffectiveConnectedLineName(String effectiveConnectedLineName) |
void |
setEffectiveConnectedLineNum(String effectiveConnectedLineNum) |
void |
setExtension(String extension) |
void |
setLanguage(String language) |
void |
setLink(String link)
Sets the name of the linked channel.
|
void |
setLinkedId(String linkedId) |
void |
setNativeFormats(String nativeFormats) |
void |
setPickupGroup(String pickupGroup) |
void |
setReadFormat(String readFormat) |
void |
setReadtrans(String readtrans) |
void |
setSeconds(Integer seconds)
Sets the number of elapsed seconds.
|
void |
setState(String state) |
void |
setTimeToHangup(String timeToHangup) |
void |
setType(String type) |
void |
setUniqueId(String uniqueId)
Sets the unique id of this channel.
|
void |
setVariables(Map<String,String> variables)
Sets the channel variables.
|
void |
setWriteFormat(String writeFormat) |
void |
setWritetrans(String writetrans) |
getActionId, getInternalActionId, setActionId, setInternalActionId
appendPropertyIfNotNull, getCallerIdName, getCallerIdNum, getChannelState, getChannelStateDesc, getConnectedLineName, getConnectedLineNum, getContext, getDateReceived, getExten, getFile, getFunc, getLine, getPriority, getPrivilege, getSequenceNumber, getServer, getSystemName, getTimestamp, setCallerIdName, setCallerIdNum, setChannelState, setChannelStateDesc, setConnectedLineName, setConnectedLineNum, setContext, setDateReceived, setExten, setFile, setFunc, setLine, setPriority, setPrivilege, setSequenceNumber, setServer, setSystemName, 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
ManagerEvent.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 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.@Deprecated public String getState()
ManagerEvent.getChannelStateDesc()
instead.public void setState(String state)
public String getExtension()
public void setExtension(String extension)
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
public void setVariables(Map<String,String> variables)
Available since Asterisk 1.6
variables
- the channel variables.public String getLinkedId()
public void setLinkedId(String linkedId)
public String getData()
public void setData(String data)
public String getReadFormat()
public void setReadFormat(String readFormat)
public String getWriteFormat()
public void setWriteFormat(String writeFormat)
public String getType()
public void setType(String type)
public String getEffectiveConnectedLineName()
public void setEffectiveConnectedLineName(String effectiveConnectedLineName)
public String getEffectiveConnectedLineNum()
public void setEffectiveConnectedLineNum(String effectiveConnectedLineNum)
public String getApplication()
public void setApplication(String application)
public String getCallGroup()
public void setCallGroup(String callGroup)
public String getNativeFormats()
public void setNativeFormats(String nativeFormats)
public String getPickupGroup()
public void setPickupGroup(String pickupGroup)
public String getTimeToHangup()
public void setTimeToHangup(String timeToHangup)
public String getDnid()
public void setDnid(String dnid)
dnid
- the dnid to setpublic String getWritetrans()
public void setWritetrans(String writetrans)
writetrans
- the writetrans to setpublic String getBridgeId()
public void setBridgeId(String bridgeid)
bridgeid
- the bridgeid to setpublic String getReadtrans()
public void setReadtrans(String readtrans)
readtrans
- the readtrans to setpublic String getLanguage()
public void setLanguage(String language)
Copyright © 2004–2024. All rights reserved.