Skip to main content
Solved

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?

Best answer by PhongVu

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.

View original
Did this thread help you find an answer to your question?

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • May 24, 2022

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.


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!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings