public class RenameEvent extends ManagerEvent
It is implemented in channel.c
Modifier and Type | Field and Description |
---|---|
protected String |
channel
Old name of the channel before renaming occured.
|
protected String |
newname
New name of the channel after renaming occured.
|
protected String |
newUniqueId
New unique id.
|
protected String |
uniqueId
Unique id of the channel.
|
callerIdName, callerIdNum, channelState, channelStateDesc, connectedLineName, connectedLineNum, context, exten, priority
source
Constructor and Description |
---|
RenameEvent(Object source) |
Modifier and Type | Method and Description |
---|---|
String |
getChannel()
Returns the old name of the channel.
|
String |
getNewname()
Returns the new name of the channel.
|
String |
getNewUniqueId()
Returns the new unique id of the channel.
|
String |
getOldname()
Deprecated.
use
getChannel() instead. |
String |
getUniqueId()
Returns the unique id of the channel.
|
void |
setChannel(String channel)
Sets the old name of the channel.
|
void |
setNewname(String newname)
Sets the new name of the channel.
|
void |
setNewUniqueId(String newUniqueId)
Sets the new unique id of the channel.
|
void |
setOldname(String oldname)
Sets the old name of the channel.
|
void |
setUniqueId(String uniqueId)
Sets the unique id of the channel.
|
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
protected String channel
protected String newname
protected String newUniqueId
protected String uniqueId
public RenameEvent(Object source)
public final String getNewname()
public final void setNewname(String newname)
newname
- the new name of the channel.public String getChannel()
public void setChannel(String channel)
The "Oldchannel" property has been renamed to "Channel" as of Asterisk 1.6.
channel
- the old name of the channel.@Deprecated public final String getOldname()
getChannel()
instead.public final void setOldname(String oldname)
The "Oldchannel" property is used by Asterisk up to 1.4 and has been renamed to "Channel" as of Asterisk 1.6.
oldname
- the old name of the channel.public final String getUniqueId()
public final void setUniqueId(String uniqueId)
uniqueId
- the unique id of the channel.public final String getNewUniqueId()
This property is only available on BRIstuffed Asterisk servers.
The purpose of this property is unclear as the unique id is supposed to never change.
public final void setNewUniqueId(String newUniqueId)
This property is only available on BRIstuffed Asterisk servers.
The purpose of this property is unclear as the unique id is supposed to never change.
newUniqueId
- the new unique id of the channel.Copyright © 2004–2022. All rights reserved.