public class DialToAgiActivityImpl extends ActivityHelper<DialToAgiActivity> implements DialToAgiActivity, NewChannelListener
Constructor and Description |
---|
DialToAgiActivityImpl(EndPoint originating,
CallerID toCallerID,
Integer timeout,
boolean hideToCallerID,
ActivityCallback<DialToAgiActivity> listener,
Map<String,String> channelVarsToSet,
AgiChannelActivityAction action) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
boolean |
cancelledByOperator() |
void |
channelUpdate(Channel channel)
Allows a listener to be informed as new channels come up during an
originate.
|
void |
dial() |
boolean |
doActivity() |
Channel |
getOriginatingChannel() |
EndPoint |
getOriginatingEndPoint() |
ListenerPriority |
getPriority() |
void |
markCancelled()
Called if the user cancels the call after starting it.
|
void |
onManagerEvent(ManagerEvent event) |
HashSet<Class<? extends ManagerEvent>> |
requiredEvents() |
boolean |
validateChannel(Channel channel) |
getLastException, isSuccess, progess, run, setLastException, startActivity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLastException, isSuccess
public DialToAgiActivityImpl(EndPoint originating, CallerID toCallerID, Integer timeout, boolean hideToCallerID, ActivityCallback<DialToAgiActivity> listener, Map<String,String> channelVarsToSet, AgiChannelActivityAction action)
public void dial()
dial
in interface DialToAgiActivity
public boolean doActivity() throws PBXException
doActivity
in class ActivityHelper<DialToAgiActivity>
PBXException
public void markCancelled()
markCancelled
in interface DialToAgiActivity
public Channel getOriginatingChannel()
getOriginatingChannel
in interface DialToAgiActivity
public EndPoint getOriginatingEndPoint()
getOriginatingEndPoint
in interface DialToAgiActivity
public void channelUpdate(Channel channel)
NewChannelListener
channelUpdate
in interface NewChannelListener
public boolean validateChannel(Channel channel)
validateChannel
in class ActivityHelper<DialToAgiActivity>
public boolean cancelledByOperator()
cancelledByOperator
in interface DialToAgiActivity
public HashSet<Class<? extends ManagerEvent>> requiredEvents()
public ListenerPriority getPriority()
getPriority
in class ActivityHelper<DialToAgiActivity>
public void onManagerEvent(ManagerEvent event)
public void abort()
abort
in interface DialToAgiActivity
Copyright © 2004–2020. All rights reserved.