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
Possible error in Call Log data
Tags: developer sandbox, call logs, rest api
Jun 1, 2021 at 2:06pm   •   1 replies  •  0 likes
jonathan-bellamy

When calling the Call-Log API I get incorrect data in the "from" object in the "legs" array.

Notice how the two "from" blocks have different "name" and "extensionId" values, but the "extensionNumber" value are both 102, even though the IDs are different.

Am I miss-reading the data, or is this being returned incorrectly?


{
"uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/call-log?view=Detailed&sessionId=2562...&page=1&perPage=100",
"records": [
{
"uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/call-log/Ah6yq1a5yU...?view=Detailed",
"id": "Ah6yq1a5yU...",
"sessionId": "256281...",
...,
"legs": [
{
"startTime": "2021-06-01T20:00:39.879Z",
"duration": 16,
"type": "Voice",
"internalType": "Sip",
"direction": "Outbound",
"action": "VoIP Call",
"result": "Call connected",
"to": {
"name": "Jonathan Bellamy",
"extensionNumber": "101"
},
 "from": {
 "name": "Tester01 Fake",
 "extensionId": "296709004",
 "extensionNumber": "102"
 },
"extension": {
"uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/296709004",
"id": 296709004
},
"transport": "VoIP",
"legType": "SipToPstnMetered"
},
...,
{
"startTime": "2021-06-01T20:00:44.497Z",
"duration": 12,
"type": "Voice",
"internalType": "Sip",
"direction": "Outbound",
"action": "VoIP Call",
"result": "Call connected",
"to": {
"phoneNumber": "+13233...",
"extensionNumber": "101",
"location": "Los Angeles, CA"
},
 "from": {
 "name": "Jonathan Bellamy",
 "extensionId": "295760004",
 "extensionNumber": "102"
 },
"extension": {
"uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/295760004",
"id": 295760004
},
"reason": "Accepted",
"reasonDescription": "The call connected to and was accepted by this number.",
"transport": "VoIP",
"legType": "PstnToSip"
}
]
}
]
}


1 Answer
answered on Jun 2, 2021 at 7:43am  

I see in some cases, the call log gives wrong data in the name and even the extensionNumber field. Can you tell me how this call was made, a direct call or a ring-out call. Call by phone number or by extension number?


 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