Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

API CTI  – Shuttle 2.4.0 onwards

...

Open CTI to an Agent

 

 
Panel
bgColor#E6E6FA

var

wakeup

=

function(url,

peer,

mode)

{

  socket.emit('AgentCTI', {
    url: url,
    peer: peer,
    mode: mode
  });
};

...

Push the event into the Integration Realtime section of the Administrator

These data will populate the following section of xCALLY Realtime:


 

Panel
bgColor#E6E6FA
var pushevent = function(appname, data, reference, url) {
  data.time = new Date();
  socket.emit('RealtimeCTI', {
    type: appname,
    channel: data,
    reference: reference,
    url: url
  });
};

 

where
appname: name of the Integration
data: object containing information about the call
reference:  CTI creation id
url: the address of the CTI


Example

 

For each event you can define which action you want the integration to perform.

 

In this example we associate to the UP event the CTI opening to an Agent, if the call belongs to the Sales Queue.

 

We also pass to the Agent a custom variable called ordernumber that we have created into the Shuttle -> Settings -> Integrations -> Custom variables section.

...