Asterisk with "udp packet receive errors"

After two weeks of “up and running” asterisk, my server is registering SIP requests slower than before. The end user at remote connections told me that sometimes the calls can not be heard and had bad quality.

I have reviewed with top, netstat and vmstat commands the performance of my server and found that CPU is 100% free and memory is 50% free.
However using the command “netstat -s” i found a high value (15000) with udp packet receive errors.

Any ideas where to search the origin of these errors? Should i tune udp buffer?

thanks and best regards


for anyone with the same problem. i just found interesting information related UDP Buffer sizing here :

so after reading i am applying the next stanzas in file /etc/sysctl.conf, and then run “sysctl -p”.

increase TCP max buffer size

net.core.rmem_max = 16777216
net.core.wmem_max = 16777216

increase Linux autotuning TCP buffer limits

min, default, and max number of bytes to use

net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216

Tomorrow at night will review if my udp receive errors are better.

You can use “iperf” to get some stats on the network. You will need 2 machines, a server and a client for this software. It reports jitter, lost packets, etc.

thanks angler.

The change seem to solve this specific problem (udp receive errors). but i still have problems. After some time the remote extensions lost their registration. looking at /var/log/asterisk/full i found a lot of :

RTP read too short messages … any idea?

Meanwhile i also find another interesting link here about max files in asterisk : … 63973.html

So i have two pendings : rtp errors and max file issue.

any comment will be appreciate.