question

rhaylander-almeida7811 avatar image
rhaylander-almeida7811 asked ·

Ring-out as another extension from a service user

Hi,

I have an App used to authenticate through OAuth with a service user as the goal is to have customers authenticating just once. I'm working with the Ring-Out API to initiate calls on behalf of users from our application, and it works as far as the correct "from" phone number is provided to a given extension, however, it seems wrong in "Call Log" as the calls originating extension is actually the one from the service user.

A detailed explanation of the use case:

  • A single user from a RingCentral account is used as a service user to authenticate via OAuth and grant access to the RingCentral's APIs;
  • Ring-Out calls are originated from a third-party application through the authenticated user. Let's say "User A" is the one connected, and a call should be initiated to "User B".

Expectation:

It'd be expected to have the call logged against the extension of "User B", not "User A"

Current behavior:

The call is getting logged against the extension of "User A"

A screenshot from "Call Log":


I'm using RingCentral's JS SDK to interact with the API, see below a piece of the code:

platform.post(`/restapi/v1.0/account/~/extension/~/ring-out`, ringOutOpts)

I've tried to use the "extensionId" of "User B" a part of the URL but when I do so I get the following error:

Resource for parameter [extensionId] is not found

Is it possible to achieve what I'm trying here? If so, what am I doing wrong?

ringout
1 |1000 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

· Write an Answer
rhaylander-almeida7811 avatar image
rhaylander-almeida7811 answered ·
1 |1000 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Work together.
From anywhere.

Team messaging, video meetings
and phone - all in one app.


Get the new RingCentral app