Class: TelephonyConnector

TelephonyConnector()

Class representing a TelephonyConnector

Constructor

new TelephonyConnector()

Source:

Methods

acceptCall(call) → {Promise.<CallResult>}

Accept call
Parameters:
Name Type Description
call PhoneCall The call to be accepted
Source:
Returns:
Type
Promise.<CallResult>

addParticipant(contact:, parentCall:, isBlindTransfer:) → {Promise.<ParticipantResult>}

Add participant to call
Parameters:
Name Type Description
contact: Contact The transfer target
parentCall: PhoneCall The call to which a participant will be added
isBlindTransfer: Boolean True if blind transfering a call and hanging up upon transfer
Source:
Returns:
Type
Promise.<ParticipantResult>

conference(calls) → {Promise.<HoldToggleResult>}

Conference calls
Parameters:
Name Type Description
calls Array.<PhoneCall>
Source:
Returns:
Type
Promise.<HoldToggleResult>

declineCall(call) → {Promise.<CallResult>}

Decline call
Parameters:
Name Type Description
call PhoneCall The call to be declined
Source:
Returns:
Type
Promise.<CallResult>

dial(contact, dialOptions) → {Promise.<CallResult>}

Dial out Number
Parameters:
Name Type Description
contact Contact
dialOptions DialOptions
Source:
Returns:
Type
Promise.<CallResult>

endCall(call, agentStatus) → {Promise.<HangupResult>}

End call
Parameters:
Name Type Description
call PhoneCall The call to be ended
agentStatus AGENT_STATUS
Source:
Returns:
Type
Promise.<HangupResult>

getActiveCalls() → {Promise.<ActiveCallsResult>}

Get the currently active calls
Source:
Returns:
Type
Promise.<ActiveCallsResult>

getAgentConfig() → {Promise.<AgentConfigResult>}

Get agentConfig
Source:
Returns:
Type
Promise.<AgentConfigResult>

getCapabilities() → {Promise.<CapabilitiesResult>}

Get Capabilities
Source:
Returns:
Type
Promise.<CapabilitiesResult>

getPhoneContacts() → {Promise.<PhoneContactsResult>}

Get phone contacts
Source:
Returns:
Type
Promise.<PhoneContactsResult>

getSignedRecordingUrl(recordingUrl, vendorCallKey, callId) → {Promise.<SignedRecordingUrlResult>}

Get the signed recording url
Parameters:
Name Type Description
recordingUrl String
vendorCallKey String
callId String
Source:
Returns:
Type
Promise.<SignedRecordingUrlResult>

hold(call) → {Promise.<HoldToggleResult>}

Hold call
Parameters:
Name Type Description
call PhoneCall The call to be held
Source:
Returns:
Type
Promise.<HoldToggleResult>

mute() → {Promise.<MuteToggleResult>}

Mute call
Source:
Returns:
Type
Promise.<MuteToggleResult>

pauseRecording(call) → {Promise.<RecordingToggleResult>}

Pause recording
Parameters:
Name Type Description
call PhoneCall
Source:
Returns:
Type
Promise.<RecordingToggleResult>

resume(call) → {Promise.<HoldToggleResult>}

Resume call
Parameters:
Name Type Description
call PhoneCall The call to be resumed
Source:
Returns:
Type
Promise.<HoldToggleResult>

resumeRecording(call) → {Promise.<RecordingToggleResult>}

Resume recording
Parameters:
Name Type Description
call PhoneCall
Source:
Returns:
Type
Promise.<RecordingToggleResult>

sendDigits(digits)

Send digits
Parameters:
Name Type Description
digits string
Source:

setAgentConfig(config) → {Promise.<GenericResult>}

Set Agent Config
Parameters:
Name Type Description
config AgentConfig
Source:
Returns:
Type
Promise.<GenericResult>

superviseCall(call)

Supervise a call
Parameters:
Name Type Description
call PhoneCall Call to be supervised
Source:

supervisorBargeIn(call)

Supervisor Barges into a ongoing call
Parameters:
Name Type Description
call PhoneCall Call which supervisor barges in
Source:

supervisorDisconnect(call)

Supervisor disconnects from a call
Parameters:
Name Type Description
call PhoneCall Call to be disconnected
Source:

swap(call1, call2) → {Promise.<HoldToggleResult>}

Swap calls
Parameters:
Name Type Description
call1 PhoneCall
call2 PhoneCall
Source:
Returns:
Type
Promise.<HoldToggleResult>

unmute() → {Promise.<MuteToggleResult>}

Unmute call
Source:
Returns:
Type
Promise.<MuteToggleResult>

wrapUpCall(call)

Wrap up call
Parameters:
Name Type Description
call PhoneCall
Source: