I'm finding an odd discrepancy in the "CallResult" fields of call records when retrieved from /active-calls vs. /call-log.
lf I hit the /active-calls endpoint, I can retrieve a list of calls that are marked "Abandoned", e.g. customers hanging up. However, if I take one of those abandoned calls and use its id to hit /call-log, the resulting log returns with the result "Missed".
Why the discrepancy? Is there some compelling reason for /call-log (esp. when called with ?view=Detailed) to not have the correct call result status?
There's only one queue in the Sandbox currently; account number is 136873004 and extension number (for the queue) is 137667004.
Here's the record fetched with /active calls:
{
"id" : "VAoo6z3WthymUg",
"sessionId" : "3968662005",
"startTime" : "2016-07-25T21:48:02.000Z",
"duration" : 17,
"type" : "Voice",
"direction" : "Inbound",
"action" : "Phone Call",
"result" : "Abandoned",
"to" : {
"extensionNumber" : "4000",
"name" : "TestCallQueue"
},
"from" : {
"phoneNumber" : "+15183488905",
"name" : "WebTest Persona",
"location" : "Schenectady, NY"
}
}
And the record fetched for that call id using /call-log?view=Detailed:
{
"id" : "VAoo6z3WthymUg",
"sessionId" : "3968662005",
"startTime" : "2016-07-25T21:48:02.000Z",
"duration" : 17,
"type" : "Voice",
"direction" : "Inbound",
"action" : "Phone Call",
"result" : "Missed",
"to" : {
"extensionNumber" : "4000",
"name" : "TestCallQueue"
},
"from" : {
"phoneNumber" : "+15183488905",
"name" : "WebTest Persona",
"location" : "Schenectady, NY"
},
"transport" : "PSTN",
"lastModifiedTime" : "2016-07-25T21:48:23.335Z",
"legs" : [ {
"startTime" : "2016-07-25T21:48:02.000Z",
"duration" : 17,
"type" : "Voice",
"direction" : "Inbound",
"action" : "Phone Call",
"result" : "Missed",
"to" : {
"extensionNumber" : "4000",
"name" : "TestCallQueue"
},
"from" : {
"phoneNumber" : "+15183488905",
"name" : "WebTest Persona",
"location" : "Schenectady, NY"
},
"transport" : "PSTN",
"legType" : "Accept",
"extension" : {
"uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/136873004/extension/137667004",
"id" : 137667004
}
}, {
"startTime" : "2016-07-25T21:48:09.000Z",
"duration" : 0,
"type" : "Voice",
"direction" : "Inbound",
"action" : "Phone Call",
"result" : "Missed",
"to" : {
"extensionNumber" : "4000",
"name" : "Development User"
},
"from" : {
"phoneNumber" : "+15183488905",
"name" : "WebTest Persona",
"location" : "Schenectady, NY"
},
"transport" : "PSTN",
"legType" : "Accept",
"extension" : {
"uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/136873004/extension/136873004",
"id" : 136873004
}
}, {
"startTime" : "2016-07-25T21:48:09.000Z",
"duration" : 10,
"type" : "Voice",
"direction" : "Inbound",
"action" : "Phone Call",
"result" : "Missed",
"to" : {
"extensionNumber" : "4000",
"name" : "Toby Steele"
},
"from" : {
"phoneNumber" : "+15183488905",
"name" : "WebTest Persona",
"location" : "Schenectady, NY"
},
"transport" : "PSTN",
"legType" : "Accept",
"extension" : {
"uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/136873004/extension/137043004",
"id" : 137043004
}
} ]
}
Can you please provide the following information to help us investigate:
is it Production or Sandbox?
What is your account/extension where this issue reproduced?
What are timestamps and phone numbers of these calls you see inconsistently?
A new Community is coming to RingCentral!
Posts are currently read-only as we transition into our new platform.We thank you for your patience
during this downtime.
Try Workflow Builder
Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!Try RingCentral Workflow Builder