public class CallImpl extends Object implements ChannelHangupListener, Call
Modifier and Type | Class and Description |
---|---|
static class |
CallImpl.OWNER
Used to indicate the ownership of the call.
|
static class |
CallImpl.TransferType |
Call.OperandChannel
Modifier and Type | Field and Description |
---|---|
protected BlindTransferActivity |
_transferActivity |
Constructor and Description |
---|
CallImpl(Channel originatingChannel,
CallDirection direction) |
CallImpl(Channel agent,
Channel callee) |
CallImpl(Channel originatingChannel,
Channel acceptingChannel,
CallDirection direction) |
Modifier and Type | Method and Description |
---|---|
boolean |
addHangupListener(CallHangupListener listener)
Call this method to get a notification when this call hangs up.
|
void |
callDialedOut(Channel remoteChannel,
CallerID fromClid,
CallerID toClid)
Call this method to indicate that this is an outbound call originated by
this NJR instance.
|
boolean |
canSplit()
Returns true of the Call can be split into two (or more) separate calls.
|
void |
channelHangup(Channel channel,
Integer cause,
String causeText) |
boolean |
contains(Channel parkChannel) |
Channel |
getAcceptingParty() |
CallerID |
getAcceptingPartyCallerID() |
Date |
getCallStartTime() |
List<Channel> |
getChannels()
Returns all of the Channels associated with this call.
|
Integer |
getContactId() |
CallDirection |
getDirection()
Returns the direction of the call.
|
Date |
getHoldStartTime() |
Channel |
getLocalParty()
This method use the CallDirection to determine which leg of the call is
the local call and which is the called/calling party.
|
Channel |
getOperandChannel(Call.OperandChannel operand)
retrieves the channel associated with the give Operand.
|
Channel |
getOriginatingParty()
Returns the originating channel for this call.
|
CallerID |
getOriginatingPartyCallerID() |
CallImpl.OWNER |
getOwner() |
EndPoint |
getParkingLot() |
Channel |
getRemoteParty()
This method use the CallDirection to determine which leg of the call is
the local call and which is the called/calling party.
|
CallerID |
getRemotePartyCallerID() |
Date |
getTimeAtDialIn() |
EndPoint |
getTransferTarget()
The current transfer target.
|
CallerID |
getTransferTargetCallerID() |
Channel |
getTransferTargetParty() |
CallImpl.TransferType |
getTransferType() |
String |
getUniqueCallID() |
boolean |
isCallParked() |
boolean |
isLive()
returns true if the call has any active channels.
|
boolean |
isSame(Call rhs) |
CallImpl |
join(Call.OperandChannel originatingOperand,
Call rhs,
Call.OperandChannel acceptingOperand,
CallDirection direction)
Joins a specific channel from this call with a specific channel from
another call which results in a new Call object being created.
|
void |
setContactId(Integer _contactId)
The contact id is just used when refilling the list of contacts so we
know which one is selected at the moment.
|
Call |
split(Call.OperandChannel channelToSplit)
Splits a channel out of a call into a separate call.
|
Call |
split(Channel channelToSplit) |
String |
toString() |
protected BlindTransferActivity _transferActivity
public CallImpl(Channel originatingChannel, CallDirection direction) throws PBXException
PBXException
public CallImpl(Channel originatingChannel, Channel acceptingChannel, CallDirection direction) throws PBXException
PBXException
public CallImpl(Channel agent, Channel callee) throws PBXException
PBXException
public CallImpl join(Call.OperandChannel originatingOperand, Call rhs, Call.OperandChannel acceptingOperand, CallDirection direction) throws PBXException
originatingOperand
- the channel from this call that will
participate in the join as the originating Channelrhs
- the call we are joining to.acceptingOperand
- the channel from the rhs call that will
participate in the join as the accepting channel.PBXException
public Call split(Call.OperandChannel channelToSplit) throws PBXException
PBXException
public Call split(Channel channelToSplit) throws PBXException
PBXException
public void channelHangup(Channel channel, Integer cause, String causeText)
channelHangup
in interface ChannelHangupListener
public Channel getOriginatingParty()
getOriginatingParty
in interface Call
public void callDialedOut(Channel remoteChannel, CallerID fromClid, CallerID toClid) throws PBXException
remoteChannel
- - the remote channel this call connected to when
dialing.PBXException
public Date getCallStartTime()
getCallStartTime
in interface Call
public Integer getContactId()
public EndPoint getTransferTarget()
public CallerID getTransferTargetCallerID()
public CallerID getAcceptingPartyCallerID()
getAcceptingPartyCallerID
in interface Call
public CallerID getOriginatingPartyCallerID()
getOriginatingPartyCallerID
in interface Call
public CallerID getRemotePartyCallerID()
getRemotePartyCallerID
in interface Call
public Date getHoldStartTime()
public EndPoint getParkingLot()
public Date getTimeAtDialIn()
public CallImpl.TransferType getTransferType()
public String getUniqueCallID()
public boolean isCallParked()
public void setContactId(Integer _contactId)
_contactId
- public CallDirection getDirection()
Call
getDirection
in interface Call
public boolean addHangupListener(CallHangupListener listener)
listener
- public boolean isLive()
public CallImpl.OWNER getOwner()
public Channel getAcceptingParty()
getAcceptingParty
in interface Call
public Channel getTransferTargetParty()
getTransferTargetParty
in interface Call
public Channel getRemoteParty()
Call
getRemoteParty
in interface Call
public Channel getLocalParty()
getLocalParty
in interface Call
public boolean canSplit()
Call
public Channel getOperandChannel(Call.OperandChannel operand)
Call
getOperandChannel
in interface Call
public boolean isSame(Call rhs)
public List<Channel> getChannels()
getChannels
in interface Call
Copyright © 2004–2020. All rights reserved.