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
Is it possible to gain access to the account telephony sessions event in sandbox account?
Tags: phone, developer sandbox
Apr 18, 2019 at 4:26am   •   6 replies  •  0 likes
tim-falkins

Any way to get access to the account telephony sessions event in the sandbox account? My company is evaluating moving to RingCentral and I'm told this event would let us monitor all incoming calls from certain numbers, apply our own logic to those calls and reroute as necessary. The only issue is I can't evaluate our ability to do this since this particular event is not available in my sandbox account.

6 Answers
answered on Sep 20, 2019 at 3:00pm  

For PubNub C# please see this quick start code.

For Webhooks C#, see this quick start code.

In both cases, change the event filter to receive presence event as follow:

eventFilters = new[] { "/restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true"}


 0
answered on Sep 20, 2019 at 12:31pm  

C#. Both please


 0
answered on Sep 20, 2019 at 9:08am  

Thank you, Phong, I thought as much because the subscription code ran without error. Now, just trying to figure out how to setup code to listen for incoming call event.


 0
answered on Sep 20, 2019 at 8:47am  

Hi Ivie,

Welcome onboard!

The Call Control API is publicly accessible now and the TelephonySession is no longer needed.

All you need is to login your developer account at developers.ringcentral.com, open the app and add the CallControl permission to the app.

Let me know if you need further supports


 0
answered on Apr 18, 2019 at 7:38am  
Thaks, Phong, but it looks like your blog post referred to determining presence. What I need to do is decide where to route incoming calls from a handful of 800#s to various ring groups based on the area code and prefix (and maybe the entire 10-digit number in some cases) of the caller.

We already have the logic to handle this decision in a database function, so I'm looking to ensure that the RC event exists that can be subscribed to in order to monitor every inbound call, pass the call parameters to our database function, and ultimately return the correct ring group for routing the call. Does that make sense? Is the /restapi/v1.0/account/{accountId}/telephony/sessions event the right one to use in this case?

 0
answered on Apr 18, 2019 at 7:18am  
Hi Tim,

Please read this blog and let me know if you have further questions. Basically, what you want is completely doable with our Telephony APIs.

As for testing on your sandbox with multiple users, goto https://service.devtest.ringcentral.com, login with the main company number (an admin user) and add more users to your sandbox account, remember to add direct phone number to each extension (user) so you can test with those phone numbers.

Hope this helps!
+ Phong

 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