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
Making API Ringout calls from different extensions, same App
Tags: rest api, extension
Apr 17, 2023 at 6:51am   •   3 replies  •  0 likes
tom1234567

I have an app in Production mode and wish to use it to make RingOut calls from different extensions. I use my credentials (Super Admin) for my app.
I want the app to be able to do Ringout calls from other extensions in my account. In the URL I use https://platform.ringcentral.com/restapi/v1.0/account/~/extension/<extId>/ring-out.
However, I get an error: CMN-426 Feature [RingOut] is not available for extension ID

Please advise how to get the app to work for all users with phone numbers in my account. Can I not just use my credentials to make calls from any extension?

BTW I use JWT Auth Flow

3 Answers
answered on Apr 17, 2023 at 7:32am  

What did you put in the /<extId>/? It must be the extension id of the extension who logged in your app and in your case, the extension who owns the JWT token. If you don't know the extension id, simply use the tilde /~/ring-out. And remember that you must use other extensions' direct phone numbers to make ring out calls.


 0
answered on Apr 17, 2023 at 9:15am  

OK, so I made an API call using my app with JWT Auth based on my login:

https://platform.ringcentral.com/restapi/v1.0/account/~/extension/~/ring-out

My body JSON is:

{"callerId":{"phoneNumber":"1781xxxx700"},"from":{"phoneNumber":"1781xxxx222"},"playPrompt":false,"to":{"phoneNumber":"1603xxxx850"}}

The response was 200 OK.

However the user's extension (from) did not ring, nor did my phone (to).

NOTE: While I am a SuperAdmin, I only have an extension, not a phone line. I am trying to enable the API only for users with phone lines.




 0
on Apr 17, 2023 at 9:53am   •  0 likes

It does not need the authenticated user to be a super admin, it does not need the authenticated user having a direct number or a phone line.

You should create a dev support ticket so someone will have a look at your account setting to help you with this.

answered on Apr 17, 2023 at 7:42am  

What do I have to do to enable all eligible extensions to make API Ringout calls?
Do I have to create JWTs for each extension?
I use the extID value for the ringout call, captured earlier by a call for extensions.
And anyway, it should be possible for a superadmin credential to be used to initiate calls from any line on the account.


 0
on Apr 17, 2023 at 8:53am   •  0 likes

I don't know your use case as of making an app that everyone can place a ring-out. But as you can see, any extension can make a ring-out from the RC app they logged in. So yes, if you want a user extension is responsible for his/her own ring-out call, then each user extension need to login your app or provide their own JWT token to the app.

If you want the owner of a ring-out call to be the super admin as you are using now, you can just use that JWT token and don't need to change the <extId>, instead just use the tilde ~. Now, it's up to you to control who can access your app and place ring-out calls between extensions by providing the "from" and the "to" phone numbers.



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