News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Why the discrepancy in call result between /active-calls and /call-log?
Tags: call logs
Jul 25, 2016 at 2:06pm   •   5 replies  •  0 likes
development-user

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?

5 Answers
answered on Jul 28, 2016 at 12:53pm  
Thanks, Anton!

 0
answered on Jul 27, 2016 at 8:36am  
We have registered a bug for this. It will be fixed in the next release.

 1
answered on Jul 25, 2016 at 3:03pm  
Thank you, this is helpful. We will investigate and let you know ASAP.

 0
answered on Jul 25, 2016 at 2:57pm  
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

    }

  } ]

}


 0
answered on Jul 25, 2016 at 2:17pm  
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?

 0



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

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us