Skip to main content
The First Step
Aug 25, 2016 5:43 PM UTC
Question

REST API Ringout results - is it possible to tell if the recipient never answered or if the call went to voicemail?

Hi

I've implemented RingOut using the REST API and it's working as expected. I have also set up a webhook notification, which is also working.


I'd like to know if it's possible to tell if the recipient (the to number) never answered or the call went to voice mail?


I don't see anything that indicates this in the call log or in the notification payload


Thanks

13 replies

Found Your Voice
Aug 31, 2016 7:26 PM UTC
You'll need to query the call log data from the other side of the call (the recipient side, which would be one of your RingCentral users).

You can do this in one of two ways:

1. Call Logs by Extension (as Recipient)
-or-
2. Call Logs as Admin User (and filter by Extension.id + session.id)

The reason for this is because every call has at least two parties: caller (person placing the call) and callee (recipient of the call being placed).

If you are fetching the call logs from the callers side (as your initial data indicated with the 'direction' property set to "Outbound"), then yes, you will only ever see "CallConnected" if the call was actually connected.

You'll need to GET the call-log data for the "callee". Then you should see the different statuses which will indicate either 'Missed' or 'VoiceMail'.
janielleThe First StepAuthor
The First Step
Sep 1, 2016 1:26 PM UTC
ok, I understand, but that would only work if the callee is a ring central user. In our case we are using the Ringout feature and the callee could be anyone. 
Found Your Voice
Sep 1, 2016 8:02 PM UTC
To try and determine this for outbound calls, you'll have to mix and match your programming logic between call log and message store data.

You might ask how to do this in Stackoverflow (use the 'ringcentral' tag), since there are a lot more developers there who love to answer questions (and we're moving towards that system for technical questions anyway). You should reference this conversation in the question on SO.