Versions Compared

Key

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

...

Code Block
languagejs
const webrtc = document.querySelector('webrtc-client-ui');

// Notify backend that the next call is callbackcall
webrtc.makeAPICall('POST','/users/[ME]/features/callout/activate/',{
  "TargetNumber": "+123456789",
  "CallbackRequestId": "11111111-1111-1111-111111111111",
  "CallbackListId": "22222222-2222-2222-2222-222222222222"
});

// After 1 sec delay, place the actual call.
setTimeout(() => { webrtc.call('+123456789') },1000);

...