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
API ringout
Tags: rest api
Aug 2, 2015 at 10:55am   •   13 replies  •  0 likes
sumit-agarwal

I am trying to make a ringout call using the ringcentral API. The request body I am passing is like this :


{ "to": {"phoneNumber": "91*******"},

"from": {"phoneNumber": "91*******"},

"callerId": {"phoneNumber": "91*******"},

"playPrompt": true

}


The response I am getting is :


{ "message": "Forbidden", "errorCode": "InternationalProhibited" }


The same call when I try to make with the ringcentral account is successful. Can u tell me what's wrong with that.

13 Answers
answered on Aug 6, 2015 at 12:49pm  
Thanks Anil and VB, it's working

 0
answered on Aug 5, 2015 at 1:43pm  

The config.ini might  end up having .txt extension. Make sure *.ini is being set while saving the file. Make sure this file is placed in the App Folder.  

Copy-paste this in your config.ini file:

HttpRegServer = "http://agentconnect.devtest.ringcentral.com";
PlatformServer = "https://platform.devtest.ringcentral.com";

For more info look into this link: https://developers.ringcentral.com/library/tutorials/test-account.html 


 0
answered on Aug 5, 2015 at 12:32pm  
Hey Anil,

I have created the config.ini txt file in the Contents folder. Then, I restarted the app and enter the login credentials corresponding to my sandbox account " service.devtest.ringcentral.com". But, still getting the "invalid credentials error".When I am entering the credentials for my production account " service.ringcentral.com", It is successful. What's happening ???

 0
answered on Aug 5, 2015 at 10:41am  
Please make sure you are adhering to these guidelines:

  • Restart the "Ringcentral for Desktop" application each and every time you make in changes to your "config.ini" file.
  • For Production account use RC Production Account credentials ( optional : extensions )
  • For Sandbox account use sandbox account credentials ( optional : extensions )

 0
answered on Aug 4, 2015 at 11:11pm  
Hey Anil,

I have already mentioned the platformServer in the config.ini file. But,it's still not working. I am able to login to my production account, but not to my sandbox account i.e "https://service.devtest.ringcentral.com"

 0
answered on Aug 4, 2015 at 1:43pm  
Hi Sumit,

Look into the link below to configure your RingCentral for Desktop Application :

https://developer.ringcentral.com/library/tutorials/test-account.html

Kindly use the mentioned server in the config.ini file while you access with different accounts :

Sandbox : PlatformServer = "https://platform.devtest.ringcentral.com";

Production : PlatformServer = "https://platform.ringcentral.com";

 0
answered on Aug 4, 2015 at 1:35pm  
Hey Anton, 

I am trying to access my sandbox account using the desktop app. I have created the config.ini txt file into the Contents folder that was required for accessing the sandbox account. but I am still getting the "invalid credentials" error. But, I am able to login to my production account. Is there anything I am missing ????

Thanks!!!

 0
answered on Aug 3, 2015 at 12:01pm  
Hey Anton,

Thanks a lot. 585(NY) worked, 732(NJ) not working.

 0
answered on Aug 3, 2015 at 11:30am  
Please try 585 (NY) and 732 (NJ) area codes.

 0
answered on Aug 3, 2015 at 11:13am  
Hey Anton, 

Thanks for the reply. Yeah you were right , that was the production account. So, to test calls and other features from my sandbox account, I can add local us numbers at a max of 4 and then using two of the numbers, one for ringout and the other one to pick up the call , right ???
And, I tried adding the local numbers in my sandbox account, it asked to select the state and area, but everytime it was showing the "number not available. select a different area". I tried a lot of areas , but none of them worked. Can u tell me how to do that ????

Thanks!!!!

 0
answered on Aug 2, 2015 at 12:33pm  
Sumit, do you mean that you can make international calls in Sandbox (via service.devtest.ringcentral.com)?

Probably you are talking about Production account ( service.ringcentral.com), while you are using API against Sandbox.

In order to test calls and other features you can add up to four US numbers on your Sandbox account, connect Softphone, and take your calls using it. 

 0
answered on Aug 2, 2015 at 11:50am  
Hey Anton,

When I try to make the international call using the ringout image provided at the top of the account, it is successful, but the same is not happening with the API. So, the international calls are banned only for  the API???? Further, can u tell me then how I can test the ringout and other features of the ringcentral API as I am not a resident of the US.

Thanks!!! 

 0
answered on Aug 2, 2015 at 11:25am  
This is expected behavior. Since we offer free service for developers on Sandbox, international calling is prohibited there.
If you want to call US numbers, you should specify phone number in E.164 format (starting from country code, "1" in case of US). 

 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