We have registered out Existing Phone (SIP Phone) in service.devtest.ringcentral.com portal. After registration we got the device id that we are trying to use to supervise the call using that SIP Phone. But whenever we hit the https://platform.devtest.ringcentral.com/restapi/v1.0/account/accountId/telephony/sessions/telephonySessionId/supervise api we are getting the error "Can't reach deviceId specified in request". Also, after registration we have checked the status of Existing Phone and it is showing as Online. Please refer the screenshot below:
Kindly review the above details and let us know if we are missing any step
Sample Code:
@Shankar Jha I see you posted a comment and the system blocked it. This is due to the code in your post. Clean it up to make it readable (not that all in new lines) and post it again to pass the system content checking.
Not like this
I am using softphone sdk for call supervision. I am using a REST API call to activate the call supervision. This API can be used for call supervision. https://developers.ringcentral.com/api-reference/Call-Control/superviseCallSession. This require a `telephonySessionId` for call supervision. I am providing that from the sip message headers using: `p-rc-api-ids': 'party-id=p-a1c1444275c32z185df69b9c9z133db40000-2;session-id=s-a1c1444275c32z185df69b9c9z133db40000'
But I am getting a 404 not found error.
Here is my code
Is your "Existing SIP Phone" assigned to a user extension, who is a supervisor in the call monitor group?
Yes ...We have assigned the existing phone to the supervisor to monitor the call.
Can you make a voice call to the supervised extension (either to its direct number or via main company number * extension number) to see if your "existing SIP Phone" receive the incoming call and be able to connect to that call?
Or can you use the device id to make a call-out call programmatically?
Note: To avoid mistake, you don't need to specify the accountId when calling an API using the .Net SDK. The SDK uses the '~' tilde and the server recognize the account from the access token of the authenticated user.
Yes ..I am able to receive the calls on my Existing Phone number. As suggested, I also removed the account id from the api call but still getting the same exception. Also, I noticed that when we call the call supervision api using the Existing Phone Device Id, we get the missed call notification in the call logs.
I see the RingCentral Phone app on the list. Can you select that device and use that device id to supervise a call to see if it works. This is just to make sure your supervision settings are correct and isolate the problem for further investigation.
Thanks for your reply..
Yes..it is working if we use the RingCentral Phone app device id to supervise the call. Supervisor phone (RingCentral App) get the call (based on the telephone session id) if we use the rc app device id for call monitoring.
Sample Code:
SuperviseCallSessionRequest Scr = new SuperviseCallSessionRequest
{
mode = "Listen",
supervisorDeviceId = deviceId, [Ringcentral App Device Id]
agentExtensionId = agentExtensionId,
};
var result1 = await rc.Restapi().Account(accountId).Telephony().Sessions(telephonySessionId).Supervise().Post(Scr, null);
Kindly review the above details and suggest the debugging step regarding existing phone device id issue.
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