News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
MakeCallOut returns CMN-102 for what appears to be a valid deviceId
Tags: sdk
May 24, 2022 at 1:42pm   •   3 replies  •  0 likes
Alex Rogers

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.

==

Request:

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

X-User-Agent: Unknown/0.0.1 RingCentral.Net/5.16.0

Authorization: Bearer RlJBMDhQMzRQQ...

Content-Type: application/json; charset=utf-8

Host: platform.ringcentral.com

Content-Length: 73

Expect: 100-continue


{"from":{"deviceId":"801351217067"},"to":{"phoneNumber":"+493022732152"}}

--

HTTP/1.1 404 Not Found

Server: nginx

Date: Thu, 19 May 2022 20:04:45 GMT

Content-Type: application/json

Content-Length: 145

Connection: keep-alive

X-Rate-Limit-Group: heavy

X-Rate-Limit-Limit: 10

X-Rate-Limit-Remaining: 9

X-Rate-Limit-Window: 60

RoutingKey: FRA08P34

RCRequestId: eda7411e-d7ae-11ec-90aa-005056b59535


{

"errors" : [

{

"errorCode" : "CMN-102",

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

}

]

}


on May 23, 2022 at 10:25am   •  0 likes

Where and how did you get the device ID? Is it working now?

on May 23, 2022 at 1:34pm   •  0 likes

No. It's not working for me. But when I read the other posts then I think I understand why. I thought that the "Phone" app in my Device list was the RC app, and I didn't understand why the Device Ids were different.

Now I understand that the RC app doesn't appear in the Device list. I find that annoying especially since the RC app appears to have a Device ID (in the events). But there appears to be now way to find out this Id without just sniffing the events.

on May 24, 2022 at 2:20pm   •  0 likes

It is a known issue. RC app does have a device ID, but there is not easy way to get it.

on May 24, 2022 at 2:25pm   •  0 likes

Thanks, @Tyler Liu. Just to confirm, the RC App's Device Id is essentially dynamic and thus will change over time, right?

on May 24, 2022 at 8:25pm   •  0 likes

RC app's device is basically a WebRTC Phone. I did a quick test, use the same credentials to setup a WebRTC phone twice and I got two different device IDs. So yes, ID will change.

on May 21, 2022 at 3:00pm   •  0 likes

==

Previously I'd sent this request:

GET https://platform.ringcentral.com/restapi/v1.0/account/~/extension/~/device HTTP/1.1

X-User-Agent: Unknown/0.0.1 RingCentral.Net/5.16.0

Authorization: Bearer RlJBMDhQMzR...

Host: platform.ringcentral.com

--


HTTP/1.1 200 OK

Server: nginx

Date: Thu, 19 May 2022 20:04:07 GMT

Content-Type: application/json

Content-Length: 1772

Connection: keep-alive

RCRequestId: d749b2f8-d7ae-11ec-bf1c-005056b5c469

RoutingKey: FRA08P34PAS03

Content-Language: en-GB

Vary: Accept-Encoding, User-Agent

X-Rate-Limit-Group: light

X-Rate-Limit-Limit: 50

X-Rate-Limit-Remaining: 49

X-Rate-Limit-Window: 60


{

"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/330036071/extension/362114071/device?page=1&perPage=100",

"records" : [ {

"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/330036071/device/801351217067",

"id" : "801351217067",

"type" : "SoftPhone",

"sku" : "DV-1",

"name" : "RingCentral Phone-App",

"serial" : "XXX",

"computerName" : "XXX",

"status" : "Offline",

"extension" : {

"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/330036071/extension/362114071",

"id" : 362114071,

"extensionNumber" : "708"

},

"phoneLines" : [ {

"id" : "157219071",

"lineType" : "Standalone",

"emergencyAddress" : {

"required" : false,

"localOnly" : true

},

"phoneInfo" : {

"id" : 435446071,

"phoneNumber" : "+492284229820716",

"type" : "VoiceFax",

"usageType" : "DirectNumber",

"country" : {

"uri" : "https://platform.ringcentral.com/restapi/v1.0/dictionary/country/83",

"id" : "83",

"name" : "Germany"

}

}

} ],

"emergency" : {

"addressStatus" : "Invalid",

"addressEditableStatus" : "AnyDevice"

},

"linePooling" : "Host"

} ],

"paging" : {

"page" : 1,

"totalPages" : 1,

"perPage" : 100,

"totalElements" : 1,

"pageStart" : 0,

"pageEnd" : 0

},

"navigation" : {

"firstPage" : {

"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/330036071/extension/362114071/device?page=1&perPage=100"

},

"lastPage" : {

"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/330036071/extension/362114071/device?page=1&perPage=100"

}

}

}

on May 21, 2022 at 2:59pm   •  0 likes

==

Previously I'd sent this request:

GET https://platform.ringcentral.com/restapi/v1.0/account/~/extension/~/device HTTP/1.1

X-User-Agent: Unknown/0.0.1 RingCentral.Net/5.16.0

Authorization: Bearer RlJBMDhQMzR...

Host: platform.ringcentral.com

--


HTTP/1.1 200 OK

Server: nginx

Date: Thu, 19 May 2022 20:04:07 GMT

Content-Type: application/json

Content-Length: 1772

Connection: keep-alive

RCRequestId: d749b2f8-d7ae-11ec-bf1c-005056b5c469

RoutingKey: FRA08P34PAS03

Content-Language: en-GB

Vary: Accept-Encoding, User-Agent

X-Rate-Limit-Group: light

X-Rate-Limit-Limit: 50

X-Rate-Limit-Remaining: 49

X-Rate-Limit-Window: 60


{

"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/330036071/extension/362114071/device?page=1&perPage=100",

"records" : [ {

"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/330036071/device/801351217067",

"id" : "801351217067",

"type" : "SoftPhone",

"sku" : "DV-1",

"name" : "RingCentral Phone-App",

"serial" : "XXX",

"computerName" : "XXX",

"status" : "Offline",

"extension" : {

"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/330036071/extension/362114071",

"id" : 362114071,

"extensionNumber" : "708"

},

"phoneLines" : [ {

"id" : "157219071",

"lineType" : "Standalone",

"emergencyAddress" : {

"required" : false,

"localOnly" : true

},

"phoneInfo" : {

"id" : 435446071,

"phoneNumber" : "+492284229820716",

"type" : "VoiceFax",

"usageType" : "DirectNumber",

"country" : {

"uri" : "https://platform.ringcentral.com/restapi/v1.0/dictionary/country/83",

"id" : "83",

"name" : "Germany"

}

}

} ],

"emergency" : {

"addressStatus" : "Invalid",

"addressEditableStatus" : "AnyDevice"

},

"linePooling" : "Host"

} ],

"paging" : {

"page" : 1,

"totalPages" : 1,

"perPage" : 100,

"totalElements" : 1,

"pageStart" : 0,

"pageEnd" : 0

},

"navigation" : {

"firstPage" : {

"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/330036071/extension/362114071/device?page=1&perPage=100"

},

"lastPage" : {

"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/330036071/extension/362114071/device?page=1&perPage=100"

}

}

}



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us