public abstract class AbstractChannelStateEvent extends AbstractChannelEvent
source
Modifier | Constructor and Description |
---|---|
protected |
AbstractChannelStateEvent(Object source) |
Modifier and Type | Method and Description |
---|---|
Integer |
getChannelState()
Returns the new state of the channel.
|
String |
getChannelStateDesc()
Returns the new state of the channel as a descriptive text.
|
String |
getConnectedlinename() |
String |
getConnectedlinenum() |
String |
getState()
Deprecated.
as of 1.0.0, use
getChannelStateDesc() instead or even better switch to numeric
values as returned by getChannelState() . |
void |
setChannelState(Integer channelState)
Sets the new state of the channel.
|
void |
setChannelStateDesc(String channelStateDesc)
Sets the new state of the channel as a descriptive text.
|
void |
setConnectedlinename(String connectedlinename) |
void |
setConnectedlinenum(String connectedlinenum) |
void |
setState(String state)
Sets the new state of the channel as a descriptive text.
|
getCallerId, getCallerIdName, getCallerIdNum, getChannel, getUniqueId, setCallerId, setCallerIdName, setCallerIdNum, setChannel, setUniqueId
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, setServer, setTimestamp, toString
getSource
protected AbstractChannelStateEvent(Object source)
public String getConnectedlinename()
public void setConnectedlinename(String connectedlinename)
public String getConnectedlinenum()
public void setConnectedlinenum(String connectedlinenum)
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 new state of the channel.public String getChannelStateDesc()
The following states are used:
public void setChannelStateDesc(String channelStateDesc)
channelStateDesc
- the new state of the channel as a descriptive text.@Deprecated public String getState()
getChannelStateDesc()
instead or even better switch to numeric
values as returned by getChannelState()
.getChannelStateDesc()
.public void setState(String state)
The state property is used by Asterisk versions prior to 1.6.
state
- the new state of the channel as a descriptive text.Copyright © 2004–2016. All rights reserved.