Skip to main content
Aug 2, 2015 5:55 PM UTC
Question

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.

13 replies

Aug 5, 2015 7:32 PM UTC
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 ???
Aug 5, 2015 8:43 PM UTC

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 

Aug 6, 2015 7:49 PM UTC
Thanks Anil and VB, it's working