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) |
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, startActivity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLastException, isSuccess
public DialActivityImpl(EndPoint originating, EndPoint accepting, CallerID toCallerID, boolean hideToCallerID, ActivityCallback<DialActivity> listener, Map<String,String> channelVarsToSet)
public boolean doActivity() throws PBXException
doActivity
in class ActivityHelper<DialActivity>
PBXException
public void markCancelled()
markCancelled
in interface DialActivity
public Channel getOriginatingChannel()
DialActivity
getOriginatingChannel
in interface DialActivity
public Channel getAcceptingChannel()
DialActivity
getAcceptingChannel
in interface DialActivity
public EndPoint getOriginatingEndPoint()
DialActivity
getOriginatingEndPoint
in interface DialActivity
public EndPoint getAcceptingEndPoint()
DialActivity
getAcceptingEndPoint
in interface DialActivity
public void channelUpdate(Channel channel)
NewChannelListener
channelUpdate
in interface NewChannelListener
public boolean validateChannel(Channel channel)
validateChannel
in class ActivityHelper<DialActivity>
public boolean cancelledByOperator()
DialActivity
cancelledByOperator
in interface DialActivity
public HashSet<Class<? extends ManagerEvent>> requiredEvents()
public ListenerPriority getPriority()
getPriority
in class ActivityHelper<DialActivity>
public void onManagerEvent(ManagerEvent event)
public Call getNewCall()
getNewCall
in interface DialActivity
Copyright © 2004–2020. All rights reserved.