net.sf.asterisk.fastagi.command
Class AnswerCommand

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

public class AnswerCommand
extends AGICommand

Answers channel if not already in answer state.
Returns -1 on channel failure, or 0 if successful.

Version:
$Id: AnswerCommand.java,v 1.1 2005/03/05 22:46:58 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
AnswerCommand()
          Creates a new AnswerCommand.
 
Method Summary
 java.lang.String buildCommand()
          Returns a string suitable to be sent to asterisk.
 
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

AnswerCommand

public AnswerCommand()
Creates a new AnswerCommand.

Method Detail

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.