Asterisk-Java

org.asteriskjava.fastagi.command
Class TddModeCommand

java.lang.Object
  extended by org.asteriskjava.fastagi.command.AbstractAgiCommand
      extended by org.asteriskjava.fastagi.command.TddModeCommand
All Implemented Interfaces:
java.io.Serializable, AgiCommand

public class TddModeCommand
extends AbstractAgiCommand

Enable/Disable TDD transmission/reception on a channel.

Returns 1 if successful, or 0 if channel is not TDD-capable.

Version:
$Id: TddModeCommand.java 938 2007-12-31 03:23:38Z srt $
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 setMode(java.lang.String mode)
          Sets the mode to set.
 
Methods inherited from class org.asteriskjava.fastagi.command.AbstractAgiCommand
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.

setMode

public void setMode(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 interface: AgiCommand
Returns a string suitable to be sent to asterisk.

Specified by:
buildCommand in interface AgiCommand
Specified by:
buildCommand in class AbstractAgiCommand
Returns:
a string suitable to be sent to asterisk.

Asterisk-Java

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