Skip to main content
Question

Possible error in Call Log data

  • June 1, 2021
  • 1 reply
  • 359 views

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 reply

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • June 2, 2021

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?