public class HangupCommand extends AbstractAgiCommand
| Constructor and Description |
|---|
HangupCommand()
Creates a new HangupCommand that hangs up the current channel.
|
HangupCommand(String channel)
Creates a new HangupCommand that hangs up 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 hangup.
|
void |
setChannel(String channel)
Sets the name of the channel to hangup.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic HangupCommand()
public HangupCommand(String channel)
channel - the name of the channel to hangup.public String getChannel()
null for the
current channel.public void setChannel(String channel)
channel - the name of the channel to hangup or null
for the current channel.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2022. All rights reserved.