We use zoom’s phone API to retrieve recordings and call logs. We noticed that the direction in the recording response differs from the response for the pertaining call log for the same call log id. Why is this? We should have the same direction on both responses; which one is correct and how can we work round this?
Recording response: (from /phone/recordings)
{
"id": "recording_123",
"caller_number": "caller_123",
"caller_number_type": 2,
"caller_name": "caller_name_123",
"callee_number": "callee_123",
"callee_number_type": 1,
"callee_name": "Foo Bar",
"direction": "outbound",
"duration": 292,
"download_url": "download_url_foobar",
"file_url": "file_url_foobar",
"date_time": "2024-05-21T09:48:07Z",
"recording_type": "Automatic",
"call_log_id": "call_log_123",
"call_id": "call_123",
"owner": {
"type": "user",
"id": "user_123",
"name": "Foo Bar",
"extension_number": 1234567890
},
"site": {
"id": "site_123"
},
"end_time": "2024-05-21T09:52:59Z",
"disclaimer_status": 0
}
Call log response:
{
"id": "call_log_123",
"user_id": "user_123",
"call_type": "voip",
"caller_number": "caller_phone_number_123",
"caller_number_type": 2,
"caller_number_source": "external",
"caller_location": "United Kingdom",
"callee_user_id": "callee_user_id_123",
"callee_number": "callee_phone_number_123",
"callee_number_type": 1,
"callee_name": "Foo Bar",
"direction": "inbound",
"duration": 293,
"result": "Auto Recorded",
"date_time": "2024-05-21T09:48:05Z",
"path": "pstn",
"site": {
"id": "site_123",
"name": "site-name-foo-bar"
},
"recording_id": "recording_123",
"recording_type": "Automatic",
"has_voicemail": false,
"call_id": "call_123",
"owner": {
"type": "user",
"id": "owner_123",
"name": "Foo Bar",
"extension_number": 1234567890
},
"caller_country_code": "44",
"caller_country_iso_code": "GB",
"callee_did_number": "callee_phone_number_123",
"callee_country_code": "44",
"callee_country_iso_code": "GB",
"answer_start_time": "2024-05-21T09:48:06Z",
"call_end_time": "2024-05-21T09:52:59Z",
"department": "dept_123",
"cost_center": ""
}