Versions Compared

Key

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

API CTI  – Shuttle 2.4.0 onwards

...

The abandon event is dispatched following a ring abandoned event on an agent for a queue call

Code Block
languagejs
event.abandon = function(data) {
  console.log('abandon');
};

...

Code Block
languagejs
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.

...