From Bright Pattern Documentation
Jump to: navigation, search
Line 1: Line 1:
 
<translate>
 
<translate>
= Dialing and Transfers =
+
= dialNumber =
This method is used for dialing phone numbers and transferring calls. There are four types of requests.
+
Makes an outbound call for the logged-in agent, using a specified phone number.
  
== Requests ==
+
== Request ==
=== Dial Number ===
+
=== Syntax ===
Dials the phone number.
 
 
 
==== Syntax ====
 
 
  window.bpspat.api.dialNumber(phone_number)
 
  window.bpspat.api.dialNumber(phone_number)
  
==== Parameters ====
+
=== Parameters ===
 
{|border="1" style="border-collapse:collapse" cellpadding="5"
 
{|border="1" style="border-collapse:collapse" cellpadding="5"
 
| '''Parameter'''
 
| '''Parameter'''
Line 21: Line 18:
 
|}
 
|}
  
 +
== Response ==
 +
Empty.
  
=== Select Service ===
+
In response to the request, the phone number is dialed.
Selects the service for the call.
 
  
==== Syntax ====
+
To get a response, use [[Embedded-agent-desktop-sdk-specification/Methods/getState getState]] to display agent state and interaction data.
window.bpspat.api.selectService(phone_number)
 
 
 
==== Parameters ====
 
{|border="1" style="border-collapse:collapse" cellpadding="5"
 
| '''Parameter'''
 
| '''Type'''
 
| '''Description'''
 
|-
 
| phone_number
 
| function
 
| Destination phone number
 
|}
 
 
 
 
 
=== Single Step Transfer ===
 
Transfers the call to another number in a single step.
 
 
 
==== Syntax ====
 
window.bpspat.api.singleStepTransfer(phone_number)
 
 
 
==== Parameters ====
 
{|border="1" style="border-collapse:collapse" cellpadding="5"
 
| '''Parameter'''
 
| '''Type'''
 
| '''Description'''
 
|-
 
| phone_number
 
| function
 
| Destination phone number
 
|}
 
 
 
 
 
=== Single Step Conference ===
 
Initiates a conference call with another phone number in a single step.
 
 
 
==== Syntax ====
 
  window.bpspat.api.singleStepConference(phone_number)
 
 
 
==== Parameters ====
 
{|border="1" style="border-collapse:collapse" cellpadding="5"
 
| '''Parameter'''
 
| '''Type'''
 
| '''Description'''
 
|-
 
| phone_number
 
| function
 
| Destination phone number
 
|}
 
  
  

Revision as of 01:08, 9 February 2019

• 5.19 • 5.3 • 5.8

<translate>

dialNumber

Makes an outbound call for the logged-in agent, using a specified phone number.

Request

Syntax

window.bpspat.api.dialNumber(phone_number)

Parameters

Parameter Type Description
phone_number function Destination phone number

Response

Empty.

In response to the request, the phone number is dialed.

To get a response, use getState to display agent state and interaction data.



</translate>

< Previous | Next >