PCAP: analyze a capture
pcap_analyzeStart a VoIP quality analysis of an uploaded .pcap/.pcapng capture (upload it with kind "pcap"). Reconstructs SIP calls and RTP streams and scores every stream (Sevana MOS from the decoded speech, network MOS, loss, jitter). Returns a job_id; the call waits up to wait_seconds and, if the analysis finished by then, includes the summary. Otherwise poll job_status. Only analysis reports are returned, never decoded audio. Reports include SIP messages and DTMF digits as captured; they are kept for one hour.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"upload_id": "<upload_id>"
},
"name": "pcap_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload_id | Yes | upload_id of a pcap upload | |
| statistics | No | compute aggregate statistics across streams (default true) | |
| wait_seconds | No | wait up to this many seconds for the result (0-55, default 25) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| error | No | ||
| stage | No | current stage while running: parsing, audio, sip, ... | |
| job_id | Yes | ||
| status | Yes | ||
| percent | Yes | ||
| summary | No | set when a PCAP job is done | |
| created_at | Yes | ||
| expires_at | No | the result is deleted at this time | |
| finished_at | No | ||
| queue_position | No | approximate place in the queue while queued |