question

akif-akif4090 avatar image
akif-akif4090 asked ·

How to place a successfull ringout ?

Hello

I am developing a chrome extension, from where trying to perform a outbound ringout using sandbox account.I have added 2 direct numbers in my sandbox account.
As according to rest API i am performing ringout but i am getting error and can not place successfull ringout.

Here is code that what i am passing to ajax call.
var url = 'https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/ringout';
var data = { "from": {"phoneNumber": "1626*******"},/*from parameter is optional if there is a default number in user's forwarding numbers */
            "to": {"phoneNumber": "1315*******"},  /*to parameter is required */               "playPrompt": true  /*optional field */             };  var headersArray = [                       {"name": "Content-Type", "value": "application/json"},                        {"name": "Authorization", "value": "Bearer "+tokenObj.access_token}                     ];

and i am getting this error:

"{    "errorCode" : "InvalidParameter",    "message" : "Unrecognized token 'from': was expecting 'null', 'true', 'false' or NaN\n at line: 1, column: 6",    "errors" : [ ]  }"
General Topic
1 |1000 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
benjamin-dean avatar image
benjamin-dean answered ·
Have you compared your request format to that used in the RingCentral API Explorer for Make a RingOut Call?
2 comments
1 |1000 characters needed characters left characters exceeded

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

Several issues can cause those errors, could you please create a developer support case for investigation?

In the meantime, here are a few possible issues to investigate:

1. Has the User/Extension in the Sandbox account been activated and enabled?
2. Have you tried using the main company number as the 'from.phoneNumber' as well as the direct number for the extension?
3. Is the extension configured to make Voice calls? You can see this in the Sandbox Online Account Portal ( https://service.devtest.ringcentral.com)
1 Like 1 ·
Thanks for comment, there were two problem 1-i was not added direct number 2-json.stringfy was required to make json string in post body.

After that i got inProgress status but in the next moment when i check status it was "CannotReach" and "GenericError", can you please elborate that how i can solve this and what is the problem happening? 
0 Likes 0 ·

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.