question

jonathan-bellamy11594 avatar image
jonathan-bellamy11594 asked jonathan-bellamy11594 commented

Possible error in Call Log data

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"
}
]
}
]
}


rest apideveloper sandboxcall logs
1 |3000

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

1 Answer

Phong Vu avatar image
Phong Vu answered jonathan-bellamy11594 commented

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?

2 comments
1 |3000

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

jonathan-bellamy11594 avatar image jonathan-bellamy11594 commented ·

The call was made softphone to softphone by dialing the extension. 102 called 101.

0 Likes 0 ·
jonathan-bellamy11594 avatar image jonathan-bellamy11594 jonathan-bellamy11594 commented ·

You probably noticed from the URI, but I am in the sandbox account.

0 Likes 0 ·

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