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).
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 | |||