public class SetAutoHangupCommand extends AbstractAgiCommand
Of course it can be hungup before then as well. Setting to 0 will cause the autohangup feature to be disabled on this channel.
| Constructor and Description |
|---|
SetAutoHangupCommand(int time)
Creates a new SetAutoHangupCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
int |
getTime()
Returns the number of seconds before this channel is automatically hung
up.
|
void |
setTime(int time)
Sets the number of seconds before this channel is automatically hung up.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic SetAutoHangupCommand(int time)
time - the number of seconds before this channel is automatically
hung up.0 disables the autohangup feature.
public int getTime()
public void setTime(int time)
time - the number of seconds before this channel is automatically
hung up.0 disables the autohangup feature.
public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2021. All rights reserved.