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
Queries for active calls every 5 seconds only works for 5 times
Tags: caller id
Apr 20, 2023 at 1:05pm   •   1 replies  •  0 likes
Robert Goth

I have a php page that queries for active calls every 5 seconds. I want to get incoming calls and updating my database with existing calls, whether it was answered/missed, how long the call was ect. It works great for 10 queries then will not allow further queries until after a time has passed. I am assuming there is a limit to the number of queries allowed. I am in sandbox mode. Will this limit change when the App goes into production mode? Is there a way to automatically open a url when a call comes in on rings end. Any help would be appreciated.

1 Answer
answered on Apr 20, 2023 at 3:28pm  

The usage group of that API (I assumed you are talking about this API) is Heavy which means the rate limit is 10 times per 60 secs. So calling the API every 5 secs will hit the rate limit for sure. And will be the same limit on the production environment.

However, for such use case, you should not poll but use one of the notification filters to get notified when there is an incoming call, the call is answered or not then the call is disconnected.

If you don't need lots of data, you can use the presence event notification with the filter "/presence?detailedTelephonyState=true"

If you need lot more data and different call statuses, use the telephony session even notification filter.

Read this blog and this blog for further information about telephony session event notifications and some use cases.



 1



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