ringcentral-embeddable icon indicating copy to clipboard operation
ringcentral-embeddable copied to clipboard

How can I learn who the person calling me has closed the call and the other side has closed call?

Open mzahirr opened this issue 4 years ago • 16 comments

image Hi , How can I learn who the person calling me has closed the call and the other side has closed call?

For example : call_status : 'abandoned'

mzahirr avatar Mar 04 '20 08:03 mzahirr

Hi @mzahirr In web phone notification, we don't have abandoned status. You can check startTime if undefined, it should a missed call. Or you need to track the callStatus. If there are connected status, it should be a answered call.

embbnux avatar Mar 06 '20 01:03 embbnux

closed by inactive

embbnux avatar Jul 02 '20 04:07 embbnux

Hi @embbnux , this is important for me . The main problem here is that the call was interrupted during the call. We cannot find out what this is caused by. for example, the call ends at the 20th second of the call. We want to know if the other party has closed it. So we can detect the problem. Can you help us with this? Thanks.

mzahirr avatar Aug 03 '20 15:08 mzahirr

Hi @mzahirr For detail call information, now you can use TelephonySession API to query it. https://developers.ringcentral.com/api-reference/Call-Control/readCallSessionStatus It will show detail parties data

embbnux avatar Aug 04 '20 09:08 embbnux

Hi @embbnux , thank for advice. I'm trying to get call logs for session id .
Is sessionId telephonySessionId? i'm querying this id but i get 404 error.

image

mzahirr avatar Aug 04 '20 09:08 mzahirr

Hi @embbnux , thank for advice. I'm trying to get call logs for session id . Is sessionId telephonySessionId? i'm querying this id but i get 404 error.

image

It is telephonySessionId. For call ended very long or dropped, telephonySession will be deleted https://developers.ringcentral.com/api-reference/Call-Control/deleteCallSession

embbnux avatar Aug 04 '20 09:08 embbnux

@embbnux My purpose is not to learn the status of the call currently. I want to know who closed the call in the past calls.

mzahirr avatar Aug 04 '20 10:08 mzahirr

@embbnux My purpose is not to learn the status of the call currently. I want to know who closed the call in the past calls.

Got it. I think we can use call log data https://developers.ringcentral.com/api-reference/Call-Log/readUserCallRecord image

You can request by yourself. Or in widget app, when user log call, it will send detail call log to third party https://github.com/ringcentral/ringcentral-embeddable/blob/master/docs/third-party-service-in-widget.md#log-call-into-your-service

embbnux avatar Aug 04 '20 10:08 embbnux

@embbnux How can we find callRecordId ? image

I have tried this recordId but getting error -> "Resource for parameter [callRecordId] is not found"

IXPCm_tIkCduk4I

mzahirr avatar Aug 04 '20 10:08 mzahirr

It is call log id. You can use call log list api and query with sessionId if you don't get call log id https://developers.ringcentral.com/api-reference/Call-Log/readUserCallLog

embbnux avatar Aug 04 '20 10:08 embbnux

Yes, I have now fulfilled this request. However, there is still no information about who ended the call.

{ "uri": "https://platform.ringcentral.com/restapi/v1.0/account/3241273008/extension/62497647008/call-log/IhwJ2_ySaFlBzUA?view=Detailed", "id": "IhwJ2_ySaFlBzUA", "sessionId": "412358860008", "startTime": "2020-08-03T13:45:21.025Z", "duration": 12, "type": "Voice", "direction": "Inbound", "action": "Phone Call", "result": "Accepted", "to": { "name": "Nicholas Casale", "phoneNumber": "+17403420523", "extensionId": "62497647008" }, "from": { "name": "AMERICAN FREIGH", "phoneNumber": "+17403632222", "location": "Delaware, OH" }, "recording": { "uri": "https://platform.ringcentral.com/restapi/v1.0/account/3241273008/recording/1325626979008", "id": "1325626979008", "type": "Automatic", "contentUri": "https://media.ringcentral.com/restapi/v1.0/account/3241273008/recording/1325626979008/content" }, "extension": { "uri": "https://platform.ringcentral.com/restapi/v1.0/account/3241273008/extension/62497647008", "id": 62497647008 }, "reason": "Accepted", "reasonDescription": "The call connected to and was accepted by this number.", "telephonySessionId": "s-cc7e0369a4954a74856b7a3080cc46da", "transport": "PSTN", "lastModifiedTime": "2020-08-03T13:45:52.065Z", "billing": { "costIncluded": 0, "costPurchased": 0 }, "legs": [ { "startTime": "2020-08-03T13:45:21.025Z", "duration": 12, "type": "Voice", "direction": "Inbound", "action": "Phone Call", "result": "Accepted", "to": { "name": "Nicholas Casale", "phoneNumber": "+17403420523", "extensionId": "62497647008" }, "from": { "name": "AMERICAN FREIGH", "phoneNumber": "+17403632222", "location": "Delaware, OH" }, "extension": { "uri": "https://platform.ringcentral.com/restapi/v1.0/account/3241273008/extension/62497647008", "id": 62497647008 }, "reason": "Accepted", "reasonDescription": "The call connected to and was accepted by this number.", "telephonySessionId": "s-cc7e0369a4954a74856b7a3080cc46da", "transport": "PSTN", "legType": "Accept", "master": true }, { "startTime": "2020-08-03T13:45:22.538Z", "duration": 10, "type": "Voice", "direction": "Outbound", "action": "VoIP Call", "result": "Call connected", "to": { "phoneNumber": "+19738594000", "extensionNumber": "39304", "location": "Passaic, NJ" }, "from": { "name": "Nicholas Casale", "phoneNumber": "+17403632222", "extensionId": "62497647008", "device": { "uri": "https://platform.ringcentral.com/restapi/v1.0/account/3241273008/device/802878607008", "id": "802878607008" } }, "recording": { "uri": "https://platform.ringcentral.com/restapi/v1.0/account/3241273008/recording/1325626979008", "id": "1325626979008", "type": "Automatic", "contentUri": "https://media.ringcentral.com/restapi/v1.0/account/3241273008/recording/1325626979008/content" }, "extension": { "uri": "https://platform.ringcentral.com/restapi/v1.0/account/3241273008/extension/62497647008", "id": 62497647008 }, "reason": "Accepted", "reasonDescription": "The call connected to and was accepted by this number.", "telephonySessionId": "s-cc7e0369a4954a74856b7a3080cc46da", "transport": "VoIP", "legType": "PstnToSip" } ] }

We want to know exactly what happened after this last step. Because our employees say that the calls are interrupted at once. Screenshot from 2020-08-04 13-42-40

mzahirr avatar Aug 04 '20 10:08 mzahirr

You can get reason field in call log. You can find detail description here https://developers.ringcentral.com/api-reference/Call-Log/readUserCallLog image

embbnux avatar Aug 04 '20 10:08 embbnux

@embbnux yes i know this area but only "reason": "Accepted" I see it as.

mzahirr avatar Aug 04 '20 10:08 mzahirr

isn't the log added here when the call ends like in this picture?

Screenshot from 2020-08-04 13-42-40

mzahirr avatar Aug 04 '20 11:08 mzahirr

@embbnux yes i know this area but only "reason": "Accepted" I see it as.

Hi @mzahirr , can you help to send email to [email protected] to show your requirements in cal log API about this.

embbnux avatar Aug 05 '20 00:08 embbnux

isn't the log added here when the call ends like in this picture?

Screenshot from 2020-08-04 13-42-40

Not sure about this. I think the picture just shows call log data. Can you help to send email to support email, so our engineers can find if Service Web can show the detail call result.

embbnux avatar Aug 05 '20 00:08 embbnux

closed by inactive

embbnux avatar Jun 20 '24 05:06 embbnux