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
getDumpRateLimit, withLock
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
The OriginateBase class will call this for each channel that comes up (as a result of the originate).
Intermediate channels (local etc) that the underlying pbx may create on the way through are ignored with only the final channels being notified.
This listener should be used by anyone that needs to have the channel at the earliest possible moment.
Listeners should not run long lived process from this call as it will stall the dialer.
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–2024. All rights reserved.