public class BlindTransferActivityImpl extends ActivityHelper<BlindTransferActivity> implements BlindTransferActivity
BlindTransferActivity.CompletionCause
Constructor and Description |
---|
BlindTransferActivityImpl(Call call,
Call.OperandChannel channelToTransfer,
EndPoint transferTarget,
CallerID toCallerID,
boolean autoAnswer,
long timeout,
ActivityCallback<BlindTransferActivity> listener)
Blind transfers a live channel to a given endpoint which may need to be
dialed.
|
BlindTransferActivityImpl(Channel agentChannel,
EndPoint transferTarget,
CallerID toCallerID,
boolean autoAnswer,
int timeout,
ActivityCallback<BlindTransferActivity> iCallback) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
cancels the BlindTransfer.
|
boolean |
doActivity() |
Channel |
getChannelToTransfer() |
BlindTransferActivity.CompletionCause |
getCompletionCause() |
Call |
getNewCall()
The call created as a result of the blind transfer being answered.
|
ListenerPriority |
getPriority() |
EndPoint |
getTransferTarget() |
CallerID |
getTransferTargetCallerID() |
Channel |
getTransferTargetChannel() |
void |
onManagerEvent(ManagerEvent event) |
HashSet<Class<? extends ManagerEvent>> |
requiredEvents() |
getLastException, isSuccess, progess, run, setLastException, startActivity, validateChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLastException, isSuccess
public BlindTransferActivityImpl(Call call, Call.OperandChannel channelToTransfer, EndPoint transferTarget, CallerID toCallerID, boolean autoAnswer, long timeout, ActivityCallback<BlindTransferActivity> listener)
channelToTransfer
- The channel which is being transferedtransferTarget
- The target to transfer (connect) the channel to.toCallerID
- The caller id to display on the target endpoint.timeout
- The time to wait (in seconds) for the activity to
complete.listener
- public BlindTransferActivityImpl(Channel agentChannel, EndPoint transferTarget, CallerID toCallerID, boolean autoAnswer, int timeout, ActivityCallback<BlindTransferActivity> iCallback) throws PBXException
PBXException
public boolean doActivity() throws PBXException
doActivity
in class ActivityHelper<BlindTransferActivity>
PBXException
public HashSet<Class<? extends ManagerEvent>> requiredEvents()
public void onManagerEvent(ManagerEvent event)
public ListenerPriority getPriority()
getPriority
in class ActivityHelper<BlindTransferActivity>
public BlindTransferActivity.CompletionCause getCompletionCause()
getCompletionCause
in interface BlindTransferActivity
public void cancel()
cancel
in interface BlindTransferActivity
public Channel getChannelToTransfer()
getChannelToTransfer
in interface BlindTransferActivity
public CallerID getTransferTargetCallerID()
getTransferTargetCallerID
in interface BlindTransferActivity
public EndPoint getTransferTarget()
getTransferTarget
in interface BlindTransferActivity
public Channel getTransferTargetChannel()
getTransferTargetChannel
in interface BlindTransferActivity
public Call getNewCall() throws PBXException
BlindTransferActivity
getNewCall
in interface BlindTransferActivity
PBXException
Copyright © 2004–2017. All rights reserved.