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
Ringout API call dialing issue
Tags: ringout api
May 10, 2021 at 8:32am   •   1 replies  •  0 likes
IT Team

I am facing issue while calling the Ringout API. Call is getting forwarded to the company main phone extension rather than the logged in user's direct extension

API implemented using https://developers.ringcentral.com/guide/voice/quick-start#ruby

Request is as follows:

Step 1 : Get the auth token

rc = RingCentral.new("#{ client_id}", "#{ client_secret}", "#{ api_url}")

aut = rc.authorize(username: "#{direct_number}", password: "#{ password}")


After getting auth token, I am calling the ringout API

resp_call = rc.post('/restapi/v1.0/account/~/extension/~/ring-out', payload: {

from: { phoneNumber: direct_number},

to: { phoneNumber: recipient},

playPrompt: true

})


Response that I am getting is { "status"=>{"callStatus"=>"InProgress", "callerStatus"=>"InProgress", "calleeStatus"=>"InProgress"}}

But no call is getting initiated.


When I am using the RingCentral number in the API call in the from parameter, call is getting initiated

Its working in only case of RingCentral number if put other number in from : { phoneNumber: direct_number} , then its not working the response is in-progress


Please can someone suggest the required changes to be made to resolve dialing issue from direct number.

1 Answer
answered on May 12, 2021 at 9:31am  

Just to make sure that this issue is not related to your sandbox call credits, can you make a direct call using the RC Desktop phone app?


 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