public class Dial extends EventListenerBaseClass
EventListenerBaseClass.AutoClose
Modifier and Type | Method and Description |
---|---|
OriginateResult[] |
dial(NewChannelListener listener,
EndPoint localHandset,
EndPoint targetEndPoint,
String dialContext,
CallerID callerID,
boolean hideCallerId,
Map<String,String> channelVarsToSet)
Dials the targetEndPoint connecting the call to the localHandset.
|
ListenerPriority |
getPriority()
Set the listeners priority.
|
void |
onManagerEvent(ManagerEvent event)
Called for each manager event that the connection receives for which the
filterEvent returned true.
|
HashSet<Class<? extends ManagerEvent>> |
requiredEvents()
Called whenever the listener is first added and any time any listener is
removed to refresh the list of required events.
|
close, getName, startListener
public Dial(String descriptiveName)
public OriginateResult[] dial(NewChannelListener listener, EndPoint localHandset, EndPoint targetEndPoint, String dialContext, CallerID callerID, boolean hideCallerId, Map<String,String> channelVarsToSet) throws PBXException
localHandset
- the users handset we are going to dial from (e.g.
receptionist phone).targetEndPoint
- - the remote handset we are going to connect the
localHandset to.dialContext
- - context we are going to dial from.hideCallerId
- channelVarsToSet
- callerId
- - the callerID to display on the targetEndPoint.PBXException
public HashSet<Class<? extends ManagerEvent>> requiredEvents()
FilteredManagerListener
public void onManagerEvent(ManagerEvent event)
FilteredManagerListener
public ListenerPriority getPriority()
FilteredManagerListener
Copyright © 2004–2020. All rights reserved.