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
Update Call Handling Rule - softPhonesAlwaysRing Issue
Tags: rest api, sdk
Apr 7, 2022 at 9:09am   •   1 replies  •  0 likes
Nate Breeden

We rarely use the RingCentral admin web interface because we have most tasks scripted in a program we wrote in C#. Today we received the below error when our program tried to update an extension/user, the error happens when our program attempts to update the users call handling rules.


The issue is that we previously had softPhonesRingCount to "0", that way both the desk phone and softphone would ring at the same time. After receiving that error we noticed that option on the RingCentral admin web interface has changed from "0" to "Always Ring", so what should we be sending through in our API call to have "Always Ring" set? The softPhonesRingCount param wants a long, so I'm not able to send "Always Ring"


The error snippet:

Content: {
  "errorCode" : "AWR-217",
  "message" : "softPhonesAlwaysRing couldn't be turned of if softPhonesRingCount is less than 1.",
  "errors" : [ {
    "errorCode" : "AWR-217",
    "message" : "softPhonesAlwaysRing couldn't be turned of if softPhonesRingCount is less than 1."
  } ]
}


The problem snippet:

forwarding = new ForwardingInfoCreateRuleRequest
{
    notifyMySoftPhones = true,
    notifyAdminSoftPhones = false,
    softPhonesRingCount = 0,
    ringingMode = "Simultaneously",
    rules = new[] {
    new RuleInfoCreateRuleRequest {
        index = 1,
        ringCount = 4,
        forwardingNumbers = new[] {
            new ForwardingNumberInfoRulesCreateRuleRequest {
                id = fwdId,
                type = fwdType
            },
        }
    },
}, 
1 Answer
answered on Apr 7, 2022 at 4:08pm  

Hi Nate. Long time no talk and welcome back to the community. Hope thing are going well with you!

Please see my previous answer from this thread.

You can specify these values in the forwarding data object

"forwarding": {
      "notifyMySoftPhones": true,
      "softPhonesPositionTop": true,
      "notifyAdminSoftPhones": false,
      "softPhonesRingCount": 1,
      "mobileTimeout": true,
      "ringingMode": "Sequentially",
      "softPhonesAlwaysRing": true
    }

Hope this helps.


 0
on Apr 8, 2022 at 3:52am   •  0 likes

As always Phong, you're awesome and thank you. Hope all is well on your end also!!



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