Question

How to place a successfull ringout ?

  • 10 January 2017
  • 1 reply
  • 380 views

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
 at line: 1, column: 6",    "errors" : [ ]  }"

1 reply

Have you compared your request format to that used in the RingCentral API Explorer for Make a RingOut Call?

Reply