Question

RingCentral event subscriptions, 'Call Completed' is not sent for dropped calls.

  • 23 September 2018
  • 2 replies
  • 1783 views

RingCentral event subscriptions, 'Call Completed' is not sent for dropped calls. We have an application that interacts with RingCentral. One of its features turns user status to "Do Not Disturb" when user gets on a call, then turns it back to "Available" when the call is finished. This is so users do not get call queue calls ringing while they are talking.

It works well, the app subscribes to the RingCentral notification events and uses "Call Started" and "Call Completed" telephony status.

However sometimes when user call drops or otherwise ends obruptly, the "Call Completed" notification is not received which causes the user to stay on "Do Not Disrturb" after the call ended.

How can we ensure that we are always notified when calls end?


2 replies

Userlevel 1
Hi Adam,

Which notification event do you use? The Account Presence or the Extension Presence? Or something else? I don't see the "Call Completed" status. These are the only telephony statuses I can see:

'NoCall' | 'CallConnected' | 'Ringing' | 'OnHold' | 'ParkedCall' 

I don't know how did you implement that and how it worked well as you said. Please provide some code snippet so I can investigate.

Meanwhile, you can read this blog to see how I use presence notification to detect incoming calls and define if it's a missed call or a call connected and when the call ends.

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

Hope this helps and let me know,
+ Phong

Hi Phong,

I am using telephony status NoCall and CallConnected:

if (call.TelephonyStatus == TelephonyStatus.NoCall)  {      CallEnded(callInfo, e);  }  else if (call.TelephonyStatus == TelephonyStatus.CallConnected)  {      CallStarted(callInfo, e);  }


This is a Presence notification with ActiveCalls attached child object.

Reply