<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.6.2">
</HEAD>
<BODY>
We've been seeing a pattern over the last couple of weeks with our Asterisk servers (1.0.9). The number of ports in use (RTP) seems to grow by two every minute or so. Eventually the server will run out of allowable files open and crash. We are resetting the server once per day to prevent this from occurring.<BR>
<BR>
Running "lsof" shows the end of the list like this:<BR>
<BR>
asterisk 26733 astx 1794u  IPv4  183341654                 UDP 192.168.1.123:22790<BR>
asterisk 26733 astx 1795u  IPv4  183341655                 UDP *:22791<BR>
asterisk 26733 astx 1796u  IPv4  183312190                 UDP 192.168.1.123:24170<BR>
asterisk 26733 astx 1797u  IPv4  183312191                 UDP *:24171<BR>
asterisk 26733 astx 1798u  IPv4  183335059                 UDP 192.168.1.123:21132<BR>
asterisk 26733 astx 1799u  IPv4  183335060                 UDP *:21133<BR>
asterisk 26733 astx 1802u  IPv4  183342252                 UDP 192.168.1.123:20358<BR>
asterisk 26733 astx 1803u  IPv4  183342253                 UDP *:20359<BR>
<BR>
and the list grows and grows (slowly but steadily).<BR>
<BR>
We have only around 600 SIP clients on this particular server so something is clearly amiss.<BR>
<BR>
My questions are:<BR>
<BR>
1. Are there any known file handle leaks in rtp.c or sip.c?<BR>
<BR>
2. If the number of ports open eventually reaches the port boundaries I have configured in rtp.c (e.g. start at 20000, end at 25000), will Asterisk crash, or it will it start to recycle those ports?<BR>
<BR>
3. I have set ulimit -n to a higher number but this doesn't seem like a solution, only a temporary band-aid.<BR>
<BR>
Thank you,<BR>
<BR>
Bryan<BR>
<BR>
</BODY>
</HTML>