News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
API to disable 'always ring for 30 seconds before forwarding is completed'?
Tags: rest api
Jul 13, 2021 at 10:49am   •   2 replies  •  0 likes
Zachary Hilliker

We have a small call center for incoming calls from doctors and nurses that can contain time sensitive requests. Some users are now working from home and share extensions. The setting 'always ring for at least 30 seconds' ends up causing delays in ringing for the people in the office using the actual phones, but we're unable to turn it off permanently because any time someone logs into the app, the setting turns itself back on automatically. Is there an API that can be used to turn off this setting? If we can get this figured out we can at least have this run on a schedule to turn the setting off for all users, or even set up a task that runs the api call when a user logs into an associated computer.

2 Answers
answered on Jul 13, 2021 at 1:45pm  

Perfect thank you. And yes that is precisely the setting i'm talking about. I've had a ticket with ringcentral trying to figure out why and stumbled upon a request about this issue. I've noticed all of our extensions at some point had it turned back on despite definitely having turned it off for at least all of our call queue members at various points to fix delays in phone ringing. I tested logging in on the mobile app after reading this specific feature request : Feature request : turning off Always ring for at least 30 seconds before forwarding is completed even if customer is using the RC app mobile - RingCentral Community Forums

But I just manually turned off the setting:

1626208901308.png


Logged into this extension on the mobile app and hit refresh 1626208931946.png


 0
answered on Jul 13, 2021 at 1:37pm  

Are you talking about this "Always ring for at least 30 seconds before forwarding is completed." setting? I am not aware of the fact that the setting turns itself back on automatically. How can I reproduce that? I test on my phone by login and logout and see the setting unchanged. Please show me the sequence how reproduce it. It sounds like a bug.

Regardless, you ask about an API to turn it on and off, if that is the setting, you can call this API to read and update the rule. Sample code in Node JS using RingCentral JS SDK!

async function readCallHandlingRules(){
    console.log("===== readCallHandlingRules ======")
    var endpoint = `/restapi/v1.0/account/~/extension/~/answering-rule/business-hours-rule`
    try{
      var params = {
        view: "Detailed"
      }
      const resp = await rcsdk.get(endpoint, params)
      var jsonObj = await resp.json()
      
      console.log(jsonObj.forwarding.mobileTimeout)
      console.log("=======")
      // toggle value 
      if (jsonObj.forwarding.mobileTimeout){
        changeRuleSetting(false)
      }else{
        changeRuleSetting(true)
      }
    }catch (e){
      console.log(e.message)
    }
}

async function changeRuleSetting(flag){
    console.log("===== changeRuleSetting ======")
    var endpoint = `/restapi/v1.0/account/~/extension/~/answering-rule/business-hours-rule`
    try{
      var params = {
        forwarding: {
          mobileTimeout: flag
        }
      }
      const resp = await rcsdk.put(endpoint, params)
      var jsonObj = await resp.json()
      console.log(jsonObj.forwarding.mobileTimeout)
    }catch (e){
      console.log(e.message)
    }
}

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us