question

Yaroslav Kozak avatar image
Yaroslav Kozak asked ·

Call Out Get Status

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

callout
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.

Phong Vu avatar image
Phong Vu answered ·

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.

Share
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.

Yaroslav Kozak avatar image
Yaroslav Kozak answered ·

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

Share
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.