question

UV driveJohnson's avatar image
UV driveJohnson's asked UV driveJohnson's commented

CMN-102 404 error despite device ID existing and being online

I keep receiving a CMN-102 when making a call to the Call Out API:

https://platform.ringcentral.com/restapi/v1.0/account/~/telephony/call-out

When I make a call to the device ID, the device is returned, and has the status of 'Online':

https://platform.ringcentral.com/restapi/v1.0/account/~/device/{DEVICE ID}

Yet, the call out just returns CMN-102 Not Found.

Does anyone have any ideas?

rest api
1 |3000

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

1 Answer

Phong Vu avatar image
Phong Vu answered UV driveJohnson's commented

First of all, to call the /call-out endpoint, your app must be authenticated by the owner of the device which will initiate the call. In other words, only the owner of a device can call the /call-out endpoint to dial from that device.

Looking at your code, I don't know which device id you are using to make the call. Because you are reading the account device ids. You should either make sure the device is owned by the authenticated user. Or better, you should use the get extension device list API to read the device id of the authenticated user and choose the device id which is online to make a call-out.

Let me know if that solves your problem.

1 comment
1 |3000

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

UV driveJohnson's avatar image UV driveJohnson's commented ·

Spot on - I was using the admin account to authenticate and initiate the call, which is why I was getting the 404. I can't help but feel a 403 or 401 would have been a more descriptive response for this though as the device does exist, the account just didn't have permission to use it?

Either way, I appreciate the help!

0 Likes 0 ·

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