Asterisk-Java

org.asteriskjava.manager.action
Class AtxferAction

java.lang.Object
  extended by org.asteriskjava.manager.action.AbstractManagerAction
      extended by org.asteriskjava.manager.action.AtxferAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class AtxferAction
extends AbstractManagerAction

Starts an attended transfer. This action seems to be a bit of a hack. See http://bugs.digium.com/view.php?id=12158 for details.

Available since Asterisk 1.6

Since:
1.0.0
Version:
$Id: AtxferAction.java 1122 2008-08-16 22:34:37Z srt $
Author:
srt
See Also:
Serialized Form

Constructor Summary
AtxferAction()
          Creates a new empty AtxferAction.
AtxferAction(java.lang.String channel, java.lang.String context, java.lang.String exten, java.lang.Integer priority)
          Creates a new AtxferAction that initiates an attended transfer of the given channel to the given context, extension, priority triple.
 
Method Summary
 java.lang.String getAction()
          Returns the name of this action, i.e.
 java.lang.String getChannel()
          Returns name of the channel to transfer.
 java.lang.String getContext()
          Returns the destination context.
 java.lang.String getExten()
          Returns the destination extension.
 java.lang.Integer getPriority()
          Returns the destination priority.
 void setChannel(java.lang.String channel)
          Sets name of the channel to transfer.
 void setContext(java.lang.String context)
          Sets the destination context.
 void setExten(java.lang.String exten)
          Sets the destination extension.
 void setPriority(java.lang.Integer priority)
          Sets the destination priority.
 
Methods inherited from class org.asteriskjava.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

AtxferAction

public AtxferAction()
Creates a new empty AtxferAction.


AtxferAction

public AtxferAction(java.lang.String channel,
                    java.lang.String context,
                    java.lang.String exten,
                    java.lang.Integer priority)
Creates a new AtxferAction that initiates an attended transfer of the given channel to the given context, extension, priority triple.

Parameters:
channel - the name of the channel to transfer
context - the destination context
exten - the destination extension
priority - the destination priority
Method Detail

getAction

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

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

getChannel

public java.lang.String getChannel()
Returns name of the channel to transfer.

Returns:
the name of the channel to transfer

setChannel

public void setChannel(java.lang.String channel)
Sets name of the channel to transfer.

Parameters:
channel - the name of the channel to transfer

getContext

public java.lang.String getContext()
Returns the destination context.

Returns:
the destination context

setContext

public void setContext(java.lang.String context)
Sets the destination context.

Parameters:
context - the destination context

getExten

public java.lang.String getExten()
Returns the destination extension.

Returns:
the destination extension

setExten

public void setExten(java.lang.String exten)
Sets the destination extension.

Parameters:
exten - the destination extension

getPriority

public java.lang.Integer getPriority()
Returns the destination priority.

Returns:
the destination priority

setPriority

public void setPriority(java.lang.Integer priority)
Sets the destination priority.

Parameters:
priority - the destination priority

Asterisk-Java

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