Get a call insights
Use this endpoint to to retrieve media and signalling insights of a voice call.
Command get a call insights
type: object
title: ChannelCall
additionalProperties: false
properties:
id:
$ref: './properties/Id.yml'
channelId:
$ref: '../messages/properties/ChannelId.yml'
from:
type: string
to:
type: string
parentId:
$ref: './properties/Id.yml'
direction:
$ref: './properties/Direction.yml'
status:
$ref: './properties/Status.yml'
type:
$ref: './properties/Type.yml'
duration:
type: integer
hangupCauseCode:
type: integer
hangupSource:
$ref: './properties/HangupSource.yml'
hangupSipCode:
type: string
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
ringingAt:
type: string
format: date-time
answeredAt:
type: string
format: date-time
endedAt:
type: string
format: date-time
signallingMetrics:
$ref: './properties/CallSignallingMetrics.yml'
mediaMetrics:
$ref: './properties/CallMediaMetrics.yml'
required:
- id
- channelId
- from
- to
- status
- type
- direction
- createdAt
- updatedAt
Example 1: Get insights from an outbound call
curl "/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/insights" \
-H 'Authorization: Bearer {Token}'
// N/A
{
"id": "382ef429-78ba-416d-899e-657d39d194ea",
"channelId": "880d8171-cbab-47bb-81b6-b1a0902da136",
"from": "3197004499436",
"to": "351919150029",
"direction": "outgoing",
"status": "completed",
"type": "pstn",
"duration": 30,
"hangupCauseCode": 16,
"hangupSource": "caller",
"hangupSipCode": "200",
"signallingMetrics": {
"pdd": 0.36154374
},
"mediaMetrics": {
"mos": 4.5,
"qualityScore": 100,
"inBytes": 918,
"outBytes": 1462,
"inPacketCount": 918,
"outPacketCount": 1462,
"inMediaPacketCount": 904,
"outMediaPacketCount": 0,
"inDtmfPacketCount": 0,
"outDtmfPacketCount": 0,
"jitterMinVar": 126.08,
"jitterMaxVar": 1187.95,
"jitterLossRate": 0,
"jitterBurstRate": 0,
"meanInterval": 20.89,
"flawTotal": 0,
"readCodecName": "PCMU",
"readCodecRate": "8000",
"writeCodecName": "PCMU",
"writeCodecRate": "8000",
"dtmfType": "info"
},
"createdAt": "2023-10-25T17:01:14.645Z",
"updatedAt": "2023-10-25T17:01:45.655Z",
"ringingAt": "2023-10-25T17:01:15.006Z",
"answeredAt": "2023-10-25T17:01:16.038Z",
"endedAt": "2023-10-25T17:01:45.478Z"
}
Last updated