Question

Call Out Get Status

  • 24 July 2020
  • 2 replies
  • 433 views

So, im basically trying to use api like in article:

await ringCentralClient.Restapi().Account().Telephony().Sessions(callId).Get();

Call id im using is returned from Make Call Out request, and ID start with "s-"

And there are 2 cases:
1) If call is active, API answers OK and returns null object
2) If call is over, it says BadRequest
Is there any chance to get real statuses for both cases?
Need to get status even if it's over


2 replies

Userlevel 1

1. Are you sure you only get the OK and null object? Please double check. As the .Net SDK shows that it returns the call session object.

2. This is the expected behavior. When the call is over, the telephony session id is invalid for this endpoint. You can implement telephony session event push notification to get notified when a call is terminated, match the telephony session id to identify that call.

1. Yes, it returns "null" as session object
2. Got it, thanks

Reply