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, startActivitygetDumpRateLimit, withLockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLastException, isSuccesspublic DialToAgiActivityImpl(EndPoint originating, CallerID toCallerID, Integer timeout, boolean hideToCallerID, ActivityCallback<DialToAgiActivity> listener, Map<String,String> channelVarsToSet, AgiChannelActivityAction action)
public void dial()
dial in interface DialToAgiActivitypublic boolean doActivity()
throws PBXException
doActivity in class ActivityHelper<DialToAgiActivity>PBXExceptionpublic void markCancelled()
markCancelled in interface DialToAgiActivitypublic Channel getOriginatingChannel()
getOriginatingChannel in interface DialToAgiActivitypublic EndPoint getOriginatingEndPoint()
getOriginatingEndPoint in interface DialToAgiActivitypublic void channelUpdate(Channel channel)
NewChannelListenerThe 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 NewChannelListenerpublic boolean validateChannel(Channel channel)
validateChannel in class ActivityHelper<DialToAgiActivity>public boolean cancelledByOperator()
cancelledByOperator in interface DialToAgiActivitypublic HashSet<Class<? extends ManagerEvent>> requiredEvents()
public ListenerPriority getPriority()
getPriority in class ActivityHelper<DialToAgiActivity>public void onManagerEvent(ManagerEvent event)
public void abort()
abort in interface DialToAgiActivityCopyright © 2004–2024. All rights reserved.