SIP call detail
sip_call_detailRetrieve one SIP call by Call-ID from a capture to analyze its INVITE dialog: message ladder, outcome, setup timing, retransmissions, Reason/Warning headers, and SDP media negotiation.
Instructions
Everything about one SIP call (INVITE dialog) by Call-ID: the message ladder
(messages carrying SDP are marked), From/To/Request-URI/P-Asserted-Identity, the
outcome (answered, failed , cancelled, no final response),
final_response with its reason phrase, timing: post-dial delay (INVITE to the
first 180/183, or to the failure response when there was none, as RFC 6076 defines
Session Request Delay), ringing, answer and setup (ACK) times, early media (SDP in
a 18x) and the call duration from 200 OK to BYE; retransmissions per message;
every Reason header with its Q.850 cause named and every Warning header; who ended
the call (ended_by: BYE or CANCEL from the caller or callee side, told apart by
the From tag); and media: each SDP with its offer/answer role, address, port,
codecs, direction and ptime, the codecs offer and answer share and the negotiated
one. For the RTP itself use rtp_streams with the same call_id.
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": "sip_call_detail"
}
}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 | |
| esp_null | No | Read SIP in NULL-encrypted ESP |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| call | No | keys: call_id, time, duration_ms, src, dst, initial_method, request_uri, from, to, p_asserted_identity, final_status, time_to_final_ms, outcome_status, attempts, resent_messages, no_final_response, message_count, methods, messages, outcome, caller, final_response, provisional, timing, retransmissions, reasons, warnings, ended_by, media | |
| error | No | ||
| found | No | ||
| ipsec | No | keys: esp_packets, spis, decoded_null, unreadable, esp_null, hint | |
| window | No | ||
| packets_scanned | No |