question

bron-truckx13965 avatar image
bron-truckx13965 asked Tyler Liu answered

Getting extension details regarding two developer accounts as users for one app in one api call

I have two developer accounts as user for one app. basically one super admin(developer 1) invited other(developer2). My aim is to recieve call from multiple extension. I have already integrated sandbox and works for developer 1. but I need to handle the call that is made to developer 2 in same subsription event.. is it possible to do so? if yes, great help if steps are provided

sdk
1 |3000

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

Phong Vu avatar image
Phong Vu answered bron-truckx13965 commented
Hi Bron,

I read and read again but still don't understand what you want to achieve. Can you explain them again.

1. "... two developer accounts as user for one app"? What did you mean?
2. "... one super admin(developer 1) invited other(developer2)"? How to invite and invite to do what?
3. "My aim is to recieve call from multiple extension"? Extensions in within an account or from different accounts?
4. "integrated sandbox and works for developer 1"? Integrated sandbox? and what works for developer 1?
5. "handle the call that is made to developer 2 in same subsription event"? What event notification do you use? You cannot combine notifications for different accounts.

+ Phong


3 comments
1 |3000

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

bron-truckx13965 avatar image bron-truckx13965 commented ·
Let me share a screenshot to explain 


As I have two developers/users with the above specified role and with extension lets say 101,102 resp. of truckx organisation. Yes I can be wrong, but I was expecting if one can get the details of both the users include thier extension id through some api. and then I can listen to there presence via subscription event.. As a result the event may receive the data on an occasion when a customer calls either of the user. Currently I am able to do this only for one user, I want to achieve for multiple users.
Thanks in advance. 
0 Likes 0 ·
Phong Vu avatar image Phong Vu ♦♦ commented ·
Thanks for the explanation! I can understand better now.

Basically, if you want to receive incoming call event notification for all extensions under an account, login with an admin user (default is the main company number) and use the presence notification at the account level.
'/restapi/v1.0/account/~/presence'
This will notify you whenever there is status changes to any extension under the same account.

You can learn from this tutorial in Node JS. It's about detecting a new call recording, but you can use the same logic to detect just incoming call.

Let me know if you are working in different programming language and want some example code in that language.

+ Phong
0 Likes 0 ·
bron-truckx13965 avatar image bron-truckx13965 commented ·
Thank you I will check on it .. and get back if required :)
0 Likes 0 ·
Tyler Liu avatar image
Tyler Liu answered
When you setup the subscription, you can add event filters for both extension

eventFilter = 
[
"/restapi/v1.0/account/~/extension/[ID of extension 1]/presence?detailedTelephonyState=true",
"/restapi/v1.0/account/~/extension/[ID of extension 2]/presence?detailedTelephonyState=true"
]
1 |3000

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

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