My request (example below) to MakeCallOut is returning a CMN-102 error. It implies that the deviceId is wrong, but I can't work out why. I've tried sending the request including the accountId and the tilde (~) but can't seem to get it working. I believe this code worked on the sandbox. Now I'm trying it on Production. The call is supposed to dialing using the RingCentral softphone.
Note: This is the second time I've posted this question, but the first post isn't visible. It's still in moderation. I'm not sure why.
See below for trace. I've subsequently found out that my deviceId is "508363071" and when I use this deviceId value then MakeCallOut now works, but I can't figure out how/why this is my Id and why I get a different id returned to the GetDevices.
X-User-Agent: Unknown/0.0.1 RingCentral.Net/5.16.0
Authorization: Bearer RlJBMDhQMzRQQ...
Content-Type: application/json; charset=utf-8
HTTP/1.1 404 Not Found
Date: Thu, 19 May 2022 20:04:45 GMT
"errors" : [
"errorCode" : "CMN-102",
"message" : "Resource for parameter [deviceId] is not found"