Creatio development guide
PDF
This documentation is valid for Creatio version 7.10.0. We recommend using the newest version of Creatio documentation.

Phone integration

Glossary Item Box

General provisions

Bpm'online can be integrated with a number of automatic telephone exchanges (Private Branch Exchange, PBX), which enables users to manage calls directly in bpm'online UI. Phone integration functions are available in the form of a CTI (Computer Telephony Integration) panel, as well as the [Calls] section. Standard CTI panel functions:

  • Displaying incoming calls with contact/account identification by the subscriber's phone number
  • One-click calls initiated from bpm'online UI
  • Call management (reply, place on hold, end or transfer call)
  • Displaying call history for managing connections of calls to various system records and call follow-up.

All calls made or received are stored in the [Calls] section. In this section, you can view when a call was started, when it ended and how long the call was; as well as the list of system records connected to the call.

By default, bpm'online cloud has a function for making calls between system users without using any additional software.

Depending on the integrated phone system and specifics of its API (Application Programming Interface), different architectural mechanisms are used. The API also affects available phone integration functions. For example, the call playback function is not available for all phone systems, the web phone is available when integrating with Webitel, etc. Regardless of the phone integration mechanism being used, the CTI panel interface remains the same for all bpm'online users.

Phone integration methods in bpm'online

There are two types of integration methods: first party and third party integrations.

In a first party integration each user has a separate integration connection. Phone system events are handled as part of that connection.

For a third party integration, a single connection to the prone system server is used for handling phone system events for all users. In a third party integration an intermediate Messaging Service link is used for distributing information streams for all users.

JavaScript adapter on the client side

When integrating with JavaScript adapter on the client side (Fig. 1), the work with the prone system is done directly from a web browser. Interactions with the phone system and JavaScript-library, usually supplied by the prone system manufacturer, is done through the phone system API. The library broadcasts events and accepts execution commands using JavaScript. In the context of this integration, the bpm'online page interacts with the application server for authentication using the HTTP(S) protocol.

Fig. 1. First party phone system API integration with a javascript adapter on the client side

This integration method can be used with a first party phone system API, such as Webitel, Oktell, Finesse. Webitel and Oktell connectors use WebSocket as connection protocol, while the Finesse connector uses long-polling http queries.

The advantage of the first party integration method is that it does not require any additional nodes, such as Messaging Service. Using an integration library, the CTI panel connects directly to the phone system server API from a browser on the user's PC (Fig. 1).

For incoming calls the phone server passes the new call start event and call parameters through WebSocket to the client integration library. When receiving a new call command, the library generates the RingStarted event that is passed to the application page.

For incoming calls, client part generates the call start command that is passed through WebSocket to the phone integration server.

Terrasoft Messaging Service on the server side

If integrating with Terrasoft Messaging Service (TMS) on the server side (Fig. 2), all phone integration events pass through TMS, which interacts with the phone system through the manufacturer's library. The library interacts with the phone system through the API. TMS also interacts with the bpm'online application server for executing query for saving call information in the database using HTTP(S). Interaction with a client application, such as passing events and receiving commands, is done via WebSocket. In case of integration with JavaScript adapter on the client side, bpm'online page interacts with the application server for authentication, using HTTP(S).

Fig. 2. Third party API integration with TMS on server side

This integration method applies to third party phone system API (TAPI, TSAPI, New Infinity protocol, WebSocket Oktell). This integration type requires Messaging Service – a Windows proxy service that works with the phone system adapter library. The Messaging Service is a universal phone system library hoster, such as Asterisk, Avaya, Callway, Ctios, Infinity, Infra, Tapi. When receiving client messages, the Messaging Service automatically connects used bpm'online library and initiates connection to phone system. The Messaging Service is essentially a functional wrapper for those phone integration connectors that do not support client integration for interacting with phone functions in browsers (event generation and handling, data transfer). A user's PC conducts two types of communication:

  • HTTP connection with bpm'online application server for authentication with host on which the Messaging Service is installed
  • WebSocket connection for working directly with phone integration (Fig. 2).

For incoming calls the phone system passes the new call start event and call parameters through the adapter library. When receiving a new call command, the Messaging Service generates the RingStarted event that is passed to the client.

For an outgoing calls, the client generates a call start command, which is passed via WebSocket to the Messaging Service, which generates an outgoing call message for the phone system.

Interaction between the phone connectors and bpm'online

All connectors interact with configuration through the CtiModel class. It handles the events received from the connector.

Fig. 3. Phone system component interaction with bpm'online

 

 

The list of supported class events is provided in table 1.

Table 1. Supported events of the CtiModel class

Event Description
initialized Triggered on completion of provider initialization.
disconnected Triggered on provider disconnection.
callStarted Triggered at the start of a new call.
callFinished Triggered after call completion.
commutationStarted Triggered after establishing call connection.
callBusy Triggered on changing call status to "busy" (TAPI only).
hold Triggered after placing call on hold.
unhold Triggered after resuming a call.
error is triggered on errors.
lineStateChanged Triggered after changing available operations for a line or a call.
agentStateChanged Triggered on changing the agent status.
activeCallSnapshot Triggered on updating the list of active calls.
callSaved Triggered after creating or updating a call in the database.
rawMessage Generic provider event. Triggered on any provider event.
currentCallChanged Triggered on changing the main call.  For example, primary call ends during a consultation.
callCentreStateChanged Triggered if an agent enters or exits Call center mode.
callInfoChanged Triggered on modifying a call data by database Id.
dtmfEntered Triggered if Dtmf signals were sent to the phone line.
webRtcStarted Triggered on a webRtc session start.
webRtcVideoStarted Triggered on a webRtc video stream session start.
webRtcDestroyed Triggered on a webRtc session end.

See Also

© bpm'online 2002-2017.

Did you find this information useful?

How can we improve it?