RingCentral app option to trigger webhook/url on an answered call

  • 1
  • Idea
  • Updated 1 month ago
  • (Edited)
I can only seem to find features that trigger an action when a call is received by the app, and not when a call is answered. This means if you have RingCentral set up to do round robin, if a call gets passed between a few agents, you get lots of duplicate triggers/actions.

With RingCentral's existing webhook features, I suspect it's possible to build a RingCentral app that triggers a webhook on a call being answered, and I've been poking around in the developer portal trying to do it myself but I've only gotten as far as making a few successful API calls (I'm a novice, so I could probably do it but it'll take me a long time). 

Has anyone else built this? I wouldn't be surprised if it's out there, or if there's something very similar that I could modify to fit my needs. Searched around, but I haven't found anything yet. 
Photo of Kaluzynski

Kaluzynski

  • 126 Points 100 badge 2x thumb
  • optimistic

Posted 1 month ago

  • 1
Photo of Brandon Hein

Brandon Hein

  • 348 Points 250 badge 2x thumb
I think they have something already with the presence event. But you need for listener to do some logic to figure out the call answered.

If you subscribe to the presence events per RC extension... you should be able to leverage the presence and telephony statuses to identify a call answered. I believe its Presence = Busy and Telephony = CallConnected.

Those two should be your indication of an RC extension starting a call.

Also part of that subscription has active call details... so that can be passed through on the webhook to give more details on a call answered.
Photo of Adam Antoszewski

Adam Antoszewski

  • 300 Points 250 badge 2x thumb

I have built an application that receives notifications on events in RingCentral. I am using ringcentral-csharp-client (in GitHub).
When it first connects to RingCentral, it subscribes to events for all users.

Then when the call notifications come, they have TelephonyStatus attribute. 

telephonyStatus: 'NoCall' | 'CallConnected'| 'Ringing' | 'OnHold' |'ParkedCall'

If is is TelephonyStatus.CallConnected, you know.



Photo of Phong Vu

Phong Vu, Devangelist

  • 2,916 Points 2k badge 2x thumb
If you are working on Node JS programming language. Check out this blog and tutorial to see how you can use the presence notification to detect if a call is answered.

https://medium.com/ringcentral-developers/how-to-get-a-new-call-recording-notification-ee9f2a6e41a0