question

Yaroslav Kozak avatar image
Yaroslav Kozak asked Yaroslav Kozak answered

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

rest api
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

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 |3000

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

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