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
PBXExceptionpublic CallImpl(Channel originatingChannel, Channel acceptingChannel, CallDirection direction) throws PBXException
PBXExceptionpublic CallImpl(Channel agent, Channel callee) throws PBXException
PBXExceptionpublic 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.PBXExceptionpublic Call split(Call.OperandChannel channelToSplit) throws PBXException
PBXExceptionpublic Call split(Channel channelToSplit) throws PBXException
PBXExceptionpublic void channelHangup(Channel channel, Integer cause, String causeText)
channelHangup in interface ChannelHangupListenerpublic Channel getOriginatingParty()
getOriginatingParty in interface Callpublic void callDialedOut(Channel remoteChannel, CallerID fromClid, CallerID toClid) throws PBXException
remoteChannel - - the remote channel this call connected to when
dialing.PBXExceptionpublic Date getCallStartTime()
getCallStartTime in interface Callpublic Integer getContactId()
public EndPoint getTransferTarget()
public CallerID getTransferTargetCallerID()
public CallerID getAcceptingPartyCallerID()
getAcceptingPartyCallerID in interface Callpublic CallerID getOriginatingPartyCallerID()
getOriginatingPartyCallerID in interface Callpublic CallerID getRemotePartyCallerID()
getRemotePartyCallerID in interface Callpublic 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()
CallgetDirection in interface Callpublic boolean addHangupListener(CallHangupListener listener)
listener - public boolean isLive()
public CallImpl.OWNER getOwner()
public Channel getAcceptingParty()
getAcceptingParty in interface Callpublic Channel getTransferTargetParty()
getTransferTargetParty in interface Callpublic Channel getRemoteParty()
CallgetRemoteParty in interface Callpublic Channel getLocalParty()
getLocalParty in interface Callpublic boolean canSplit()
Callpublic Channel getOperandChannel(Call.OperandChannel operand)
CallgetOperandChannel in interface Callpublic boolean isSame(Call rhs)
public List<Channel> getChannels()
getChannels in interface CallCopyright © 2004–2020. All rights reserved.