Voip

From PersoWiki
Jump to: navigation, search

Linux useful tools (commands)

ngrep -Wbyline host 10.10.10.10 port 5060
tcpdump -ni any port 5060 -vvv and host 10.10.10.10 -s0
tcpdump -i any -s 65535 -w /tmp/tcpdump.pcap
tcpdump -iany -n udp and host 10.10.10.10 -s0 -wcapture.pcap


Using sox

Convert sound file:

sox Charliefaitesle1-new.wav -r 8000 -c 1 -e u-law Charliefaitesle1-2.wav

Trim the end of the sound file

sox Charliefaitesle1.wav Charliefaitesle1-new.wav reverse trim 0.7 reverse