<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.4417.0">
<TITLE>Open files / socket leak </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>We're using STABLE CVS-Nv1-0-5-02/24/05 and we've been noticing that sometimes there's a socket leak on REGISTER SIP messages. We've seen it happen only on customers using Sipura SPA2100 ATAs.</FONT></P>
<P><FONT SIZE=2>If I issue a "sip show channels", I see thousands of "zombie channels". If I look into the details, that's what I get - actually one single "sip show channel <channelID>" returns thousands of these:</FONT></P>
<P><FONT SIZE=2> * SIP Call</FONT>
<BR><FONT SIZE=2> Direction: Incoming</FONT>
<BR><FONT SIZE=2> Call-ID: 5c2cf755-ccde1b6c@x.x.x.xq: 520 REGISTER</FONT>
<BR><FONT SIZE=2> Our Codec Capability: 12</FONT>
<BR><FONT SIZE=2> Non-Codec Capability: 1</FONT>
<BR><FONT SIZE=2> Their Codec Capability: 0</FONT>
<BR><FONT SIZE=2> Joint Codec Capability: 0</FONT>
<BR><FONT SIZE=2> Format unknown</FONT>
<BR><FONT SIZE=2> Theoretical Address: x.x.x.x:5060</FONT>
<BR><FONT SIZE=2> Received Address: x.x.x.x:5060</FONT>
<BR><FONT SIZE=2> NAT Support: RFC3581</FONT>
<BR><FONT SIZE=2> Our Tag: 715659627</FONT>
<BR><FONT SIZE=2> Their Tag: </FONT>
<BR><FONT SIZE=2> SIP User agent: </FONT>
<BR><FONT SIZE=2> Need Destroy: 0</FONT>
<BR><FONT SIZE=2> Last Message: </FONT>
<BR><FONT SIZE=2> Promiscuous Redir: No</FONT>
<BR><FONT SIZE=2> Route: N/A</FONT>
<BR><FONT SIZE=2> DTMF Mode: rfc2833 </FONT>
</P>
<BR>
<P><FONT SIZE=2>The sequence number (ie. 520) increases by 1 every time.</FONT>
</P>
<P><FONT SIZE=2>After a while, I run out of files and I have to restart asterisk. I have temporarily solved the problem by issuing a "ulimit -n 8192" in safe_asterisk, but that's not a solution, since I will eventually reach that limit as well. Is there a way to fix this? We're running RHEL4 and we have about 300 customers registered all the time.</FONT></P>
<P><FONT SIZE=2>Thank you very much</FONT>
<BR><FONT SIZE=2>-Manuel</FONT>
</P>
</BODY>
</HTML>