How to get the status of the ongoing outbound call (polling)?

  • 1
  • Question
  • Updated 4 years ago
  • Answered
  • (Edited)
You may want to know the status of a call while it's in progress. Here is an example of how to do that:

update(next, delay) {
   if (!rcsdk.getRingoutHelper().isInProgress(ringout)) return;
       .then(function(ajax) {
           // also save as, for example, prevRingoutData
// updated status of ringout
           timeout = next(delay); // you can increase delay here
var timeout = rcsdk.getUtils().poll(update, 3000); // stay in RPS limits
To stop polling:
Photo of TT

TT, Alum

  • 412 Points 250 badge 2x thumb

Posted 4 years ago

  • 1

Be the first to post a reply!