Why the discrepancy in call result between /active-calls and /call-log?

  • 1
  • Question
  • Updated 2 years ago
  • Answered
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?
Photo of Development User

Development User

  • 140 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Anton Nikitin

Anton Nikitin, Official Rep

  • 2,934 Points 2k badge 2x thumb
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?
Photo of Development User

Development User

  • 140 Points 100 badge 2x thumb
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

    }

  } ]

}

(Edited)
Photo of Anton Nikitin

Anton Nikitin, Official Rep

  • 2,934 Points 2k badge 2x thumb
Thank you, this is helpful. We will investigate and let you know ASAP.
Photo of Anton Nikitin

Anton Nikitin, Official Rep

  • 2,934 Points 2k badge 2x thumb
We have registered a bug for this. It will be fixed in the next release.
Photo of Development User

Development User

  • 140 Points 100 badge 2x thumb
Anton, how frequently do you push out updates? Can we have at least a rough approximation of when the next api release is due?
Photo of Development User

Development User

  • 140 Points 100 badge 2x thumb
Thanks, Anton!