到这里下载:
https://svn.digium.com/svn/sniff2sipp/trunk/
先安装依赖:
perl -MCPAN -e "install Net::SIP"
perl -MCPAN -e "install Number::Range"
perl -MCPAN -e "install Net::Pcap::Reassemble"
perl -MCPAN -e "install NetPacket::IP"
perl -MCPAN -e "install NetPacket::UDP"
perl -MCPAN -e "install NetPacket::TCP"
perl -MCPAN -e "install Getopt::Std"
perl -MCPAN -e "install IO::File"
测试一把:
cd samples
sniff2sipp -a 172.16.178.128:5060 -f call.cap,看到的是:
Wrote scenario file 172.16.178.1:29536.xml
Wrote scenario file 172.16.178.1:45502.xml
Wrote audio file 172.16.178.1:19784.pcap
Wrote audio file 172.16.178.1:47016.pcap