[asterisk-dev] asterisk 1.4 rtp port exhaustion fix

Paul Albrecht albrecht at glccom.com
Mon May 16 15:26:29 CDT 2011


On Mon, 2011-05-16 at 13:53 -0500, Paul Belanger wrote:
> On 11-05-16 02:02 PM, Paul Albrecht wrote:
> > Hi,
> >
> > When I run the mp3 application I sometimes run out of rtp ports because
> > asterisk doesn't close open files and sockets before exec'ing the mpg123
> > process. Here's a fix:
> >
> If there is not already an issue on the tracker, please create one. 
> Also, uploading your patch to reviewboard would be recommended.
> 

There must be an issue already because someone "fixed" the problem for
later asterisk releases. The thing is I don't think the "fix" makes
sense for linux which I thought was the preferred platform for asterisk.
The linuxy way to close open descriptors before exec'ing a script would
be to set the "close on exec" whenever a file is opened or a socket is
created. As for the review board, I simply fixed the stuff that affected
the applications that I support so the codes not finished and not ready
for review.

-- 
Paul Albrecht




More information about the asterisk-dev mailing list