Applies to VoipNow Professional, VoipNow 3, and VoipNow 3.5! |
Every time you have to debug a call in order to identify the causes of abnormal behaviors, you need to make a traffic capture.
For this, you need tcpdump. Tcpdump is not installed by default. To install it, execute the following command on the server:
yum -y install tcpdump |
In case the replication scenario is known, follow the steps below:
Start a capture using the following command.
tcpdump -nni any -s 0 udp port 5050 or port 5060 -w /usr/local/voipnow/admin/htdocs/out.pcap |
Tcpdump is able to rotate captures after a certain period of time. Assuming that you want to create an unlimited number of captures, in fact they are limited by the disk space, here is how things should unfold.
Execute the following command.
tcpdump -Z root -i any -s65535 -G 3600 -vnn udp port 5050 or port 5060 -w /usr/local/voipnow/admin/htdocs/'output_%Y-%m-%d_%H:%M:%S.pcap' |
To limit the number of captures produced, insert the -W parameter where the number of the captures can be specified.
tcpdump -Z root -i any -s65535 -G 3600 -vnn udp port 5050 or port 5060 -W 10 -w /usr/local/voipnow/admin/htdocs/'output_%Y-%m-%d_%H:%M:%S.pcap' |
Tcpdump is also able to rotate captures by size. Assuming that you want to make a capture of 100MB max, here is how things should unfold:
Execute the following command.
tcpdump -Z root -i any -s65535 -vnn udp port 5050 or port 5060 -C 100 -w /usr/local/voipnow/admin/htdocs/output |
To limit the number of captures produced, insert the -W parameter where the number of the captures can be specified.
tcpdump -Z root -i any -s65535 -vnn udp port 5050 or port 5060 -C 100 -W 10 -w /usr/local/voipnow/admin/htdocs/output |
|