net.sf.asterisk.fastagi.command
Class TDDModeCommand

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

public class TDDModeCommand
extends AGICommand

Enable/Disable TDD transmission/reception on a channel.
Returns 1 if successful, or 0 if channel is not TDD-capable.

Version:
$Id: TDDModeCommand.java,v 1.2 2005/03/08 16:48:34 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
TDDModeCommand(java.lang.String mode)
          Creates a new TDDModeCommand.
 
Method Summary
 java.lang.String buildCommand()
          Returns a string suitable to be sent to asterisk.
 java.lang.String getMode()
          Returns the mode to set.
 void setTimeout(java.lang.String mode)
          Sets the mode to set.
 
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

TDDModeCommand

public TDDModeCommand(java.lang.String mode)
Creates a new TDDModeCommand.

Parameters:
mode - the mode to set, this can be one of "on", "off", "mate" or "tdd".
Method Detail

getMode

public java.lang.String getMode()
Returns the mode to set.

Returns:
the mode to set.

setTimeout

public void setTimeout(java.lang.String mode)
Sets the mode to set.

Parameters:
mode - the mode to set, this can be one of "on", "off", "mate" or "tdd".

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.