question

development-user2679 avatar image
development-user2679 asked development-user2679 commented

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

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?

call logs
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

anton-nikitin avatar image
anton-nikitin answered
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?
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

development-user2679 avatar image
development-user2679 answered
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

    }

  } ]

}

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

anton-nikitin avatar image
anton-nikitin answered
Thank you, this is helpful. We will investigate and let you know ASAP.
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

anton-nikitin avatar image
anton-nikitin answered development-user2679 commented
We have registered a bug for this. It will be fixed in the next release.
1 comment
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Anton, how frequently do you push out updates? Can we have at least a rough approximation of when the next api release is due?
0 Likes 0 ·
development-user2679 avatar image
development-user2679 answered
Thanks, Anton!
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys