• Home
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • General
  • News & Announcements
  • Ideas
  • RingCentral Office
    • Getting Started
    • Authentication
    • App Graduation
    • API Betas & Developer Previews
    • REST API
      • Call Management API
      • Glip API
      • Meetings API
      • Messaging API (SMS, Fax, Voicemail)
      • Provisioning API
      • Voice and Telephony API
    • Environment (Sandbox, Gateway)
    • SDKs
    • Admin & Credentials
  • RingCentral Engage
    • Getting Started
    • REST API
      • Interactions API
      • Provisioning API
      • Routing API
  • Jobs/Requests for Help
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Users
  • Badges
Skip to main content
  • Create
    • Ask a question
    • Create an article
    • Post an idea
    • General
    • News & Announcements
    • Ideas
    • RingCentral Office
      • Getting Started
      • Authentication
      • App Graduation
      • API Betas & Developer Previews
      • REST API
        • Call Management API
        • Glip API
        • Meetings API
        • Messaging API (SMS, Fax, Voicemail)
        • Provisioning API
        • Voice and Telephony API
      • Environment (Sandbox, Gateway)
      • SDKs
      • Admin & Credentials
    • RingCentral Engage
      • Getting Started
      • REST API
        • Interactions API
        • Provisioning API
        • Routing API
    • Jobs/Requests for Help
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Sign in
  • Home
  • RingCentral Office

question

sumit-agarwal avatar image
sumit-agarwal asked · Aug 02, 2015 at 05:55 PM

API ringout

 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.
topic-default
Comment
0
1 |1000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

13 Answers

· Write an Answer
  • Sort by Created Created
  • Sort by Oldest Oldest
  • Sort by Votes Votes
anton-nikitin avatar image
anton-nikitin answered · Aug 02, 2015 at 06:25 PM
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 · Share
1 |1000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

sumit-agarwal avatar image
sumit-agarwal answered · Aug 02, 2015 at 06:50 PM
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 · Share
1 |1000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

anton-nikitin avatar image
anton-nikitin answered · Aug 02, 2015 at 07:33 PM
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 · Share
1 |1000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

sumit-agarwal avatar image
sumit-agarwal answered · Aug 03, 2015 at 06:13 PM
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 · Share
1 |1000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

anton-nikitin avatar image
anton-nikitin answered · Aug 03, 2015 at 06:30 PM
Please try 585 (NY) and 732 (NJ) area codes.
0 · Share
1 |1000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

sumit-agarwal avatar image
sumit-agarwal answered · Aug 03, 2015 at 07:01 PM
Hey Anton,

Thanks a lot. 585(NY) worked, 732(NJ) not working.
0 · Share
1 |1000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

sumit-agarwal avatar image
sumit-agarwal answered · Aug 04, 2015 at 08:35 PM
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 · Share
1 |1000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

ak avatar image
ak answered · Aug 04, 2015 at 08:43 PM
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 · Share
1 |1000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

sumit-agarwal avatar image
sumit-agarwal answered · Aug 05, 2015 at 06:11 AM
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 · Share
1 |1000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

ak avatar image
ak answered · Aug 05, 2015 at 05:41 PM
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 · Share
1 |1000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

  • Current Page: Page 1
  • Page 2
  • Next Page

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

question details

4 People are following this question.

sumit-agarwal follows this question anton-nikitin follows this question ak follows this question vb follows this question
Answers Subscribe to Answers Answers and Comments Subscribe to Comments and Answers

Related Questions

How to make a call with Sandbox 3 Answers

I am looking Ring Central User Account API 2 Answers

In order to call, what should i do?. 10 Answers

Is it possible to update permissions on an app which passed graduation requirements? 3 Answers

Launch an external url when answering call 1 Answer

  • Developer Home
  • ·
  • Community Guidelines
  • ·
  • Legal
  • ·
  • Privacy Notice