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)
NewChannelListenerchannelUpdate 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–2021. All rights reserved.