question

Shelby Tolliver avatar image
Shelby Tolliver asked Phong Vu edited

"CMN-102" "message" : "Resource for parameter [deviceId] is not found"

Have been successfully issuing CallOut's from C# SDK using deviceId. Now, all of a sudden I'm getting this "resource for parameter is not found". I'm using the same deviceId as I have been. I then went out and checked for all my device id's using

rc.Restapi().Account().Extension().Device().Get();

and it's returning the same deviceId. What's wrong now?

Thanks

rest api
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

Phong Vu avatar image
Phong Vu answered Phong Vu edited

Are you sure the device is "online"? Check the device status. What type of phone is associated with that device id?

2 comments
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.

Thanks Phong. The phone was "offline". The phone app was "logged out". I've since logged in and all is well once again.

1 Like 1 ·

I recommend you always checking device status then place a call out call accordingly.

var resp = await rc.Restapi().Account().Extension().Device().Get();
foreach (var record in resp.records)
{
    if (record.id == "expected device" && record.status == "online")
    {
        // call call-out API
    }
}
   
1 Like 1 ·

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