net.sf.asterisk.fastagi.command
Class SetCallerIdCommand

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

public class SetCallerIdCommand
extends AGICommand

Changes the callerid of the current channel.

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

Constructor Summary
SetCallerIdCommand(java.lang.String callerId)
          Creates a new SetCallerIdCommand.
 
Method Summary
 java.lang.String buildCommand()
          Returns a string suitable to be sent to asterisk.
 java.lang.String getCallerId()
          Returns the new callerId.
 void setCallerId(java.lang.String callerId)
          Sets the new callerId.
 
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

SetCallerIdCommand

public SetCallerIdCommand(java.lang.String callerId)
Creates a new SetCallerIdCommand.

Parameters:
callerId - the new callerId.
Method Detail

getCallerId

public java.lang.String getCallerId()
Returns the new callerId.

Returns:
the new callerId.

setCallerId

public void setCallerId(java.lang.String callerId)
Sets the new callerId.

Parameters:
callerId - the new callerId.

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.