Methods
acceptCall(call) → {Promise.<CallResult>}
Accept call
Parameters:
| Name | Type | Description |
|---|---|---|
call |
PhoneCall | The call to be accepted |
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 |
Returns:
- Type
- Promise.<ParticipantResult>
conference(calls) → {Promise.<HoldToggleResult>}
Conference calls
Parameters:
| Name | Type | Description |
|---|---|---|
calls |
Array.<PhoneCall> |
Returns:
- Type
- Promise.<HoldToggleResult>
declineCall(call) → {Promise.<CallResult>}
Decline call
Parameters:
| Name | Type | Description |
|---|---|---|
call |
PhoneCall | The call to be declined |
Returns:
- Type
- Promise.<CallResult>
dial(contact, dialOptions) → {Promise.<CallResult>}
Dial out Number
Parameters:
| Name | Type | Description |
|---|---|---|
contact |
Contact | |
dialOptions |
DialOptions |
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 |
Returns:
- Type
- Promise.<HangupResult>
getActiveCalls() → {Promise.<ActiveCallsResult>}
Get the currently active calls
Returns:
- Type
- Promise.<ActiveCallsResult>
getAgentConfig() → {Promise.<AgentConfigResult>}
Get agentConfig
Returns:
- Type
- Promise.<AgentConfigResult>
getCapabilities() → {Promise.<CapabilitiesResult>}
Get Capabilities
Returns:
- Type
- Promise.<CapabilitiesResult>
getPhoneContacts() → {Promise.<PhoneContactsResult>}
Get phone contacts
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 |
Returns:
- Type
- Promise.<SignedRecordingUrlResult>
hold(call) → {Promise.<HoldToggleResult>}
Hold call
Parameters:
| Name | Type | Description |
|---|---|---|
call |
PhoneCall | The call to be held |
Returns:
- Type
- Promise.<HoldToggleResult>
mute() → {Promise.<MuteToggleResult>}
Mute call
Returns:
- Type
- Promise.<MuteToggleResult>
pauseRecording(call) → {Promise.<RecordingToggleResult>}
Pause recording
Parameters:
| Name | Type | Description |
|---|---|---|
call |
PhoneCall |
Returns:
- Type
- Promise.<RecordingToggleResult>
resume(call) → {Promise.<HoldToggleResult>}
Resume call
Parameters:
| Name | Type | Description |
|---|---|---|
call |
PhoneCall | The call to be resumed |
Returns:
- Type
- Promise.<HoldToggleResult>
resumeRecording(call) → {Promise.<RecordingToggleResult>}
Resume recording
Parameters:
| Name | Type | Description |
|---|---|---|
call |
PhoneCall |
Returns:
- Type
- Promise.<RecordingToggleResult>
sendDigits(digits)
Send digits
Parameters:
| Name | Type | Description |
|---|---|---|
digits |
string |
setAgentConfig(config) → {Promise.<GenericResult>}
Set Agent Config
Parameters:
| Name | Type | Description |
|---|---|---|
config |
AgentConfig |
Returns:
- Type
- Promise.<GenericResult>
superviseCall(call)
Supervise a call
Parameters:
| Name | Type | Description |
|---|---|---|
call |
PhoneCall | Call to be supervised |
supervisorBargeIn(call)
Supervisor Barges into a ongoing call
Parameters:
| Name | Type | Description |
|---|---|---|
call |
PhoneCall | Call which supervisor barges in |
supervisorDisconnect(call)
Supervisor disconnects from a call
Parameters:
| Name | Type | Description |
|---|---|---|
call |
PhoneCall | Call to be disconnected |
swap(call1, call2) → {Promise.<HoldToggleResult>}
Swap calls
Parameters:
| Name | Type | Description |
|---|---|---|
call1 |
PhoneCall | |
call2 |
PhoneCall |
Returns:
- Type
- Promise.<HoldToggleResult>
unmute() → {Promise.<MuteToggleResult>}
Unmute call
Returns:
- Type
- Promise.<MuteToggleResult>
wrapUpCall(call)
Wrap up call
Parameters:
| Name | Type | Description |
|---|---|---|
call |
PhoneCall |