question

anjana-rao10774 avatar image
anjana-rao10774 asked Tyler Liu answered

How to provision polycom phone using API

How to register a polycom device, using sandbox account. How to do sip provisioning for Polycom phone post /restapi/v1.0/client-info/sip-provision


I tried -


Curl

curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" --header "Authorization: Bearer U0pDMTFQMDFQQVMwMHxBQUJvTTZoTmZiSnp1Tk5XWVFCQkNUWFZWTDNTdGR2eWltODNWWF9BR2tVOUdLZVFEc2cweEUwb3lENWZ2X3lla0pGNF9QWWRPMEVYNENYQjd4dmJsWHJocDNNR1QxN2FqZWJIczcycTVONm13M3kwVDdfcUkzSFRVSENBUDVsSWZISXFIWVpuSm0xUmdlSGtoRHdNUl9WR3ZqNlZVSnN0M2l4eVZ1RnBFOWx0YUN2LU5tQV90azJmdEhNQ1I1eWh3SE18SkVsdUxRfDR5U1pkWUk5eGljSGRCVjI0NVZCQ2d8QUE" -d "{\"device\":[{\"id\":\"64167f7f7f81\",\"appExternalId\":\"\",\"computerName\":\"VVX 500\"}],\"sipInfo\":[{\"transport\":\"UDP\"}]}" "https://platform.devtest.ringcentral.com/restapi/v1.0/client-info/sip-provision"



Request URL

https://platform.devtest.ringcentral.com/restapi/v1.0/client-info/sip-provision


Response Body

{    "errorCode": "InvalidParameter",    "message": "Parameter [device] value is invalid",    "errors": [      {        "errorCode": "CMN-101",        "message": "Parameter [device] value is invalid",        "parameterName": "device"      }    ],    "parameterName": "device"  }


Response Code

400




phonesip
1 |1500 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

Tyler Liu avatar image
Tyler Liu answered
https://developer.ringcentral.com/api-docs/latest/index.html#!#RefCreateSipRegistration

According to the doc, there should be a "sipInfo" property in request body.
1 |1500 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.

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