Media path check (one-way audio, 488)
media_path_checkChecks a call's media path by comparing SDP offer/answer against captured RTP per direction, exposing one-way, missing, NAT/relay, and codec issues.
Instructions
Check one call's media path: the SDP offer and answer (the last completed
exchange, so a re-INVITE wins) against the RTP actually captured in each direction.
directions gives, for offerer to answerer and back, the expected source and
destination from the SDP, the streams seen and a status: as negotiated, arrives from
another source (NAT or relay), sent elsewhere, or missing. issues explain one-way
or no audio and failed calls: no_rtp, one_way_media, source_differs_from_sdp,
nat_not_latched (a private SDP address whose far end keeps sending to it),
rtp_to_wrong_address, private_sdp_address, media_direction (sendonly, recvonly,
inactive), media_rejected (port 0), payload_type_not_negotiated, codec_mismatch
(no codec in common between the offer and the answer, or the SDP of a 488) and
no_answer. verdict is the most telling issue in one sentence. RTP to or from the
call's SDP addresses is read; heuristic: true also decodes RTP that no SDP in the
capture set up.
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": {
"path": "<path>",
"call_id": "<call_id>"
},
"name": "media_path_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Same forms as start | |
| path | Yes | Capture file (absolute, in an allowed dir) or open_capture handle | |
| start | No | ISO 8601, epoch s, +Ns from start, -Ns from end | |
| redact | No | Replace subscriber identifiers in this result with tokens; ids+ips hides every IP too | off |
| call_id | Yes | SIP Call-ID of the call | |
| heuristic | No | Also decode RTP without SIP/SDP (heuristic RTP over UDP) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| found | No | ||
| offer | No | ||
| answer | No | ||
| issues | No | rows with keys: kind, detail | |
| window | No | ||
| call_id | No | ||
| verdict | No | ||
| directions | No | rows with keys: direction, expected, status, streams | |
| failure_sdp | No | ||
| rtp_streams | No | ||
| common_codecs | No | ||
| display_filter | No | ||
| packets_scanned | No |