Interface Call
-
- All Superinterfaces:
Issue
,OptionalCategoryProvider
,OptionalTenantProvider
,StorageProvider
public interface Call extends Issue
ACall
represents an existingIssue
in the novomind iAGENT system and therefore has an Id,Storage
,Tenant
, etc. The difference to anActiveCall
is that anActiveCall
represents a call in the PBX while the associatedCall
object only exists in the novomind iAGENT system. ACall
can provide some information of theActiveCall
that triggered the instantiation of the call. TheActiveCall
associated with theCall
object can either be aQueuedCall
, anIncomingCall
or anOutgoingCall
. AQueuedCall
is anActiveCall
that is queued in the backlog of the novomind iAGENT system and capable of being routed to an agent. AnIncomingCall
is anActiveCall
received on the phone device of a logged on agent and directly initiated by any other source. AnOutgoingCall
is anActiveCall
initiated by the phone device of a logged on agent and addressed to any other target.- Since:
- 11.14
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getCallId()
The unique id of the call, that has been assigned to the call by the PBX when the call has been received.java.util.Optional<java.util.Date>
getDateEnqueued()
The enqueued date of this call.java.util.Optional<java.util.Date>
getDateFinished()
The finished date is when the call has ended.java.util.Optional<java.util.Date>
getDateFirstRouted()
The date of the first successful routing of this call to an agent.default java.time.Duration
getDuration()
Deprecated.Please useCallInfo.getTotalDuration()
instead.default java.util.Optional<java.time.Duration>
getRoutingDuration()
Deprecated.Please useCallRoutingInfo.getRoutingDuration()
instead.java.util.Optional<java.lang.String>
getSourceId()
The optional sourceId is the caller identification or caller number of the call.java.lang.String
getTargetId()
The targetId is the call destination, e.g.java.util.Optional<TransactionCode>
getTransactionCode()
The transaction code assigned to the call when finished.boolean
hasRecording()
The method returns true if the call has been recorded, otherwise false.boolean
isSilentMonitoringAllowed()
The method returns true if silent monitoring for the call was allowed, otherwise false.-
Methods inherited from interface com.novomind.ecom.api.iagent.model.Issue
getDateReceived, getId, getLocale, getLocation, getRoutingTags, getTenant
-
Methods inherited from interface com.novomind.ecom.api.iagent.provider.OptionalCategoryProvider
getCategory
-
Methods inherited from interface com.novomind.ecom.api.iagent.provider.StorageProvider
getStorage
-
-
-
-
Method Detail
-
getCallId
java.lang.String getCallId()
The unique id of the call, that has been assigned to the call by the PBX when the call has been received.- Returns:
- the unique call id of the call assigned by the PBX
- Since:
- 11.14
-
getDateEnqueued
java.util.Optional<java.util.Date> getDateEnqueued()
The enqueued date of this call. The optional will be empty if the call has not been enqueued yet or has been finished before being enqueued. After a call has been received and has passed the IVR the call is enqueued. From this moment the call may be routed to an agent.- Returns:
- the optional enqueued date of this call.
- Since:
- 11.14
-
getDateFirstRouted
java.util.Optional<java.util.Date> getDateFirstRouted()
The date of the first successful routing of this call to an agent. The optional will be empty if the call has not been routed yet or has been finished before being routed.- Returns:
- the optional first routed date of this call.
- Since:
- 11.14
-
getDateFinished
java.util.Optional<java.util.Date> getDateFinished()
The finished date is when the call has ended. Any additional working after call time configured for the agent does not affect the finished date of the call. The optional will be empty if the call has not been finished yet.- Returns:
- the optional finished date of this call.
- Since:
- 11.14
-
getSourceId
java.util.Optional<java.lang.String> getSourceId()
The optional sourceId is the caller identification or caller number of the call.- Returns:
- the optional sourceId of this call.
- Since:
- 11.4
-
getTargetId
java.lang.String getTargetId()
The targetId is the call destination, e.g. called number of the call.- Returns:
- the targetId of the call.
- Since:
- 11.4
-
getTransactionCode
java.util.Optional<TransactionCode> getTransactionCode()
The transaction code assigned to the call when finished. The optional will be empty if the call has not been finished yet or if no transaction code has been assigned to the finished call.- Returns:
- the optional transaction code of the call.
- Since:
- 11.4
-
hasRecording
boolean hasRecording()
The method returns true if the call has been recorded, otherwise false.- Returns:
- true if the call has been recorded, otherwise false
- Since:
- 12.4
-
isSilentMonitoringAllowed
boolean isSilentMonitoringAllowed()
The method returns true if silent monitoring for the call was allowed, otherwise false.- Returns:
- true if silent monitoring is allowed, otherwise false
- Since:
- 12.31
-
getDuration
@Deprecated default java.time.Duration getDuration()
Deprecated.Please useCallInfo.getTotalDuration()
instead. The duration of a finished call is the elapsed time between the received date and the finished date. If the call has not been finished yet, the duration of the call is the elapsed time between the received date and the current time now.- Returns:
- the duration of this call as a duration object.
- Since:
- 11.14
-
getRoutingDuration
@Deprecated default java.util.Optional<java.time.Duration> getRoutingDuration()
Deprecated.Please useCallRoutingInfo.getRoutingDuration()
instead. The routing duration is the elapsed time between the enqueued date and first routed date. The optional will be empty if the call has not been routed yet.- Returns:
- the routing duration of this call as a duration object.
- Since:
- 11.14
-
-