Skip to main content

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?

I agree that it sounds pretty weird.
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?

Sandbox.

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:

{

    "uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/136873004/extension/137667004/call-log/VAoo6z3WthymUg?view=Simple",

    "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:

{

  "uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/136873004/extension/137667004/call-log/VAoo6z3WthymUg?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

    }

  } ]

}


Thank you, this is helpful. We will investigate and let you know ASAP.
We have registered a bug for this. It will be fixed in the next release.
Thanks, Anton!

Reply