sngrep_capture
Capture SIP traffic with tcpdump to a pcap file for analysis. Specify network interface, duration, BPF filter, and output path. Produces sngrep-compatible output under /tmp.
Instructions
Capture SIP traffic using tcpdump (sngrep-compatible pcap output).
Parameters
interface:
Network interface to capture on (default: any).
duration:
Capture duration in seconds (max 300).
filter_expr:
BPF filter expression (default: port 5060).
output_file:
Path to write the pcap file. Must resolve under /tmp or
/var/tmp (overridable via OPENSIPS_MCP_CAPTURE_ROOTS).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sngrep_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interface | No | any | |
| duration | No | ||
| filter_expr | No | port 5060 | |
| output_file | No | /tmp/capture.pcap |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||