Constructor
-
new CallManager()
-
Methods
-
createCall(callService) → {AvayaClientServices.Services.Call.Call}
-
Parameters:
Name Type Description callServiceAvayaClientServices.Services.Call.CallService Returns:
-
createMakeCall(callService, callId, remoteAddress, ucid, parentUcid, contextId) → {AvayaClientServices.Services.Call.Call}
-
Parameters:
Name Type Argument Description callServiceAvayaClientServices.Services.Call.CallService callIdremoteAddressucidstring <optional>
UCID
parentUcidstring <optional>
parent UCID
contextIdstring <optional>
contextId
Returns:
-
createRemoteOrIncomingCall(callService, callId, remoteAddress, remoteDisplayName, isAuraAsserted, isPrivate, isVideoCall, alertType, subject) → {AvayaClientServices.Services.Call.Call}
-
Parameters:
Name Type Description callServiceAvayaClientServices.Services.Call.CallService callIdremoteAddressremoteDisplayNameisAuraAssertedisPrivateisVideoCallalertTypesubjectReturns:
-
deleteCall(call)
-
Parameters:
Name Type Description callAvayaClientServices.Services.Call.Call
-
getAllCalls() → {Array.<AvayaClientServices.Services.Call.Call>}
-
Returns all calls including local and remote
Returns:
{ Array.<AvayaClientServices.Services.Call.Call> }
-
getCallById(callId) → {AvayaClientServices.Services.Call.Call}
-
Returns call associated with a callId
Parameters:
Name Type Description callIdString Returns:
-
getCallCount() → {Number}
-
Gets the current number of calls.
Returns:
{ Number }
-
getEndingCall() → {AvayaClientServices.Services.Call.Call|undefined}
-
Get call in ENDING state. Assumes no two calls can be ending at the moment
Returns:
{ AvayaClientServices.Services.Call.Call | undefined }
-
getIgnoredCalls() → {Array.<AvayaClientServices.Services.Call.Call>}
-
Returns calls in IGNORED state
Returns:
{ Array.<AvayaClientServices.Services.Call.Call> }
-
getLastMissedCall() → {AvayaClientServices.Services.Call.Call}
-
Returns the last missed call
Returns:
-
hasHeldCall() → {Boolean}
-
Is there an active call in held state
Returns:
{ Boolean }
-
hasInitiatingCall() → {Boolean}
-
Is there a call being initiated.
Returns:
{ Boolean }
-
setCallMode(call, mode)
-
Parameters:
Name Type Description callAvayaClientServices.Services.Call.Call modeAvayaClientServices.Services.Call.Modes.AbstractCallMode
-
setCalls(calls)
-
Parameters:
Name Type Description callsAvayaClientServices.Services.Call.Calls
-
setLastMissedCall(missedCall)
-
Sets the last missed call
Parameters:
Name Type Description missedCallAvayaClientServices.Services.Call.Call