question

sumit-agarwal34 avatar image
sumit-agarwal34 asked sumit-agarwal34 answered

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.

rest api
1 |3000

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

sumit-agarwal34 avatar image
sumit-agarwal34 answered
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 ???
1 |3000

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

vyshakhbabji avatar image
vyshakhbabji Deactivated answered

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 

1 |3000

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

sumit-agarwal34 avatar image
sumit-agarwal34 answered
Thanks Anil and VB, it's working
1 |3000

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

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys