此问题似乎与此屏幕截图所示的在线帐户门户 UI 的“类型”列有关:
Web UI 的“类型”列显示入站、出站或未命中。这可以通过使用direction 和result 的响应属性来生成。
-
direction API 响应属性将为 Inbound 或 Outbound
-
result API 响应属性是一个枚举值,包括 Missed 和其他值,包括 Voicemail 这是示例屏幕截图。完整列表可在以下链接中找到:
参考:https://developer.ringcentral.com/api-docs/latest/index.html#!#ResultStatusValues
这是一个示例响应:
{
"uri": "https://platform.ringcentral.com/restapi/v1.0/account/11111111/call-log?view=Simple&showBlocked=true&withRecording=false&dateFrom=2018-08-27T06:18:00.000Z&page=1&perPage=100",
"records": [
{
"uri": "https://platform.ringcentral.com/restapi/v1.0/account/11111111/call-log/22222222?view=Simple",
"id": "22222222",
"sessionId": "33333333",
"startTime": "2018-08-27T17:38:12.634Z",
"duration": 27,
"type": "Voice",
"direction": "Inbound",
"action": "Phone Call",
"result": "Missed",
"to": {
"phoneNumber": "+16505550101"
},
"from": {
"phoneNumber": "+16505550102",
"name": "LOS ALTOS CA",
"location": "Los Altos, CA"
}
}
],
...
}