net.sf.asterisk.fastagi.command
Class SetAutoHangupCommand

java.lang.Object
  extended by net.sf.asterisk.fastagi.command.AGICommand
      extended by net.sf.asterisk.fastagi.command.SetAutoHangupCommand
All Implemented Interfaces:
java.io.Serializable

public class SetAutoHangupCommand
extends AGICommand

Cause the channel to automatically hangup at the given number of seconds in the future.
Of course it can be hungup before then as well. Setting to 0 will cause the autohangup feature to be disabled on this channel.

Version:
$Id: SetAutoHangupCommand.java,v 1.3 2005/03/10 21:48:11 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
SetAutoHangupCommand(int time)
          Creates a new SetAutoHangupCommand.
 
Method Summary
 java.lang.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.
 
Methods inherited from class net.sf.asterisk.fastagi.command.AGICommand
escapeAndQuote, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetAutoHangupCommand

public SetAutoHangupCommand(int time)
Creates a new SetAutoHangupCommand.

Parameters:
time - the number of seconds before this channel is automatically hung up.
0 disables the autohangup feature.
Method Detail

getTime

public int getTime()
Returns the number of seconds before this channel is automatically hung up.

Returns:
the number of seconds before this channel is automatically hung up.

setTime

public void setTime(int time)
Sets the number of seconds before this channel is automatically hung up.

Parameters:
time - the number of seconds before this channel is automatically hung up.
0 disables the autohangup feature.

buildCommand

public java.lang.String buildCommand()
Description copied from class: AGICommand
Returns a string suitable to be sent to asterisk.

Specified by:
buildCommand in class AGICommand
Returns:
a string suitable to be sent to asterisk.


Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.