I am testing RingCentral RingOut functionality and by following the docs working on it. But I am facing a few problems:
- which countries RingCentral supports to call (from and to)?
- How can I place a test call using two different cell numbers?
Currently, I am making a RingOut request but in response i'm getting 400 bad request error with message of that:
from and to ("Unrecognized token 'from': was expecting 'null)
Updated:
Sending ajax request having these params:
var url = 'https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/ringout';
var data = {
"from": {"phoneNumber": "usa_phone_sandboxed"},/*from parameter is optional if there is a default number in user's forwarding numbers */
"to": {"phoneNumber": "usa_phone_real"}, /*to parameter is required */
/*"playPrompt": true optional field */
};
var headersArray = [
{"Content-Type": "application/json"},
{"Authorization": "Bearer "+my_access_token}
];
I'm using a sandbox account. Language: Javascript on browser side.