net.sf.asterisk.manager.action
Class ZapDialOffhookAction

java.lang.Object
  extended by net.sf.asterisk.manager.action.AbstractManagerAction
      extended by net.sf.asterisk.manager.action.ZapDialOffhookAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class ZapDialOffhookAction
extends AbstractManagerAction

The ZapDialOffhookAction dials a number on a zap channel while offhook.

Version:
$Id: ZapDialOffhookAction.java,v 1.4 2005/08/07 17:10:29 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
ZapDialOffhookAction()
          Creates a new empty ZapDialOffhookAction.
ZapDialOffhookAction(java.lang.Integer zapChannel, java.lang.String number)
          Creates a new ZapDialOffhookAction that dials the given number on the given zap channel.
 
Method Summary
 java.lang.String getAction()
          Returns the name of this action, i.e.
 java.lang.String getNumber()
          Returns the number to dial.
 java.lang.Integer getZapChannel()
          Returns the number of the zap channel.
 void setNumber(java.lang.String number)
          Sets the number to dial.
This property is mandatory.
 void setZapChannel(java.lang.Integer channel)
          Sets the number of the zap channel.
This property is mandatory.
 
Methods inherited from class net.sf.asterisk.manager.action.AbstractManagerAction
getActionId, setActionId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZapDialOffhookAction

public ZapDialOffhookAction()
Creates a new empty ZapDialOffhookAction.


ZapDialOffhookAction

public ZapDialOffhookAction(java.lang.Integer zapChannel,
                            java.lang.String number)
Creates a new ZapDialOffhookAction that dials the given number on the given zap channel.

Parameters:
zapChannel - the number of the zap channel
number - the number to dial
Since:
0.2
Method Detail

getAction

public java.lang.String getAction()
Returns the name of this action, i.e. "ZapDialOffhook".

Specified by:
getAction in interface ManagerAction
Specified by:
getAction in class AbstractManagerAction

getZapChannel

public java.lang.Integer getZapChannel()
Returns the number of the zap channel.


setZapChannel

public void setZapChannel(java.lang.Integer channel)
Sets the number of the zap channel.
This property is mandatory.


getNumber

public java.lang.String getNumber()
Returns the number to dial.


setNumber

public void setNumber(java.lang.String number)
Sets the number to dial.
This property is mandatory.



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