public class ChannelStatusCommand extends AbstractAgiCommand
Return values:
| Constructor and Description |
|---|
ChannelStatusCommand()
Creates a new ChannelStatusCommand that queries the current channel.
|
ChannelStatusCommand(String channel)
Creates a new ChannelStatusCommand that queries the given channel.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getChannel()
Returns the name of the channel to query.
|
void |
setChannel(String channel)
Sets the name of the channel to query.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic ChannelStatusCommand()
public ChannelStatusCommand(String channel)
channel - the name of the channel to query.public String getChannel()
null for the
current channel.public void setChannel(String channel)
channel - the name of the channel to query or null
for the current channel.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2022. All rights reserved.