public class DialActivityImpl extends ActivityHelper<DialActivity> implements DialActivity, NewChannelListener
| Constructor and Description |
|---|
DialActivityImpl(EndPoint originating,
EndPoint accepting,
CallerID toCallerID,
boolean hideToCallerID,
ActivityCallback<DialActivity> listener,
Map<String,String> channelVarsToSet,
String dialOptions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelledByOperator()
Returns true if markCancelled was called during the dial attempt.
|
void |
channelUpdate(Channel channel)
Allows a listener to be informed as new channels come up during an
originate.
|
boolean |
doActivity() |
Channel |
getAcceptingChannel()
Returns the 'accepting' channel which is brought up as part of the dial
activity.
|
EndPoint |
getAcceptingEndPoint()
Returns the end point which is being dialed.
|
Call |
getNewCall() |
Channel |
getOriginatingChannel()
Returns the 'originating' channel which is brought up as part of the dial
activity.
|
EndPoint |
getOriginatingEndPoint()
Returns the end point which originated the dial.
|
ListenerPriority |
getPriority() |
void |
markCancelled()
Called to cancels the dial before it fully comes up.
|
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 DialActivityImpl(EndPoint originating, EndPoint accepting, CallerID toCallerID, boolean hideToCallerID, ActivityCallback<DialActivity> listener, Map<String,String> channelVarsToSet, String dialOptions)
public boolean doActivity()
throws PBXException
doActivity in class ActivityHelper<DialActivity>PBXExceptionpublic void markCancelled()
markCancelled in interface DialActivitypublic Channel getOriginatingChannel()
DialActivitygetOriginatingChannel in interface DialActivitypublic Channel getAcceptingChannel()
DialActivitygetAcceptingChannel in interface DialActivitypublic EndPoint getOriginatingEndPoint()
DialActivitygetOriginatingEndPoint in interface DialActivitypublic EndPoint getAcceptingEndPoint()
DialActivitygetAcceptingEndPoint in interface DialActivitypublic 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<DialActivity>public boolean cancelledByOperator()
DialActivitycancelledByOperator in interface DialActivitypublic HashSet<Class<? extends ManagerEvent>> requiredEvents()
public ListenerPriority getPriority()
getPriority in class ActivityHelper<DialActivity>public void onManagerEvent(ManagerEvent event)
public Call getNewCall()
getNewCall in interface DialActivityCopyright © 2004–2024. All rights reserved.