Files
tldr/pages.zh/common/sngrep.md

20 lines
490 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# sngrep
> 从终端显示SIP呼叫消息流。
> 更多信息:<https://github.com/irontec/sngrep>。
- 从PCAP文件可视化SIP数据包
`sngrep -I {{path/to/file.pcap}}`
- 仅可视化以INVITE数据包开始的对话和来自PCAP文件的RTP数据包
`sngrep -crI {{path/to/file.pcap}}`
- 实时接口仅显示以INVITE数据包开始的对话和RTP数据包
`sngrep -cr`
- 仅捕获数据包,不通过接口保存到文件:
`sngrep -NO {{path/to/file.pcap}}`