[asterisk-bugs] [Asterisk 0014404]: app_playback does not seem to be closing audio files.

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 5 08:50:54 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14404 
====================================================================== 
Reported By:                mcargile
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14404
Category:                   Applications/app_playback
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.1-beta4 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-02-04 12:59 CST
Last Modified:              2009-02-05 08:50 CST
====================================================================== 
Summary:                    app_playback does not seem to be closing audio
files.
Description: 
I have an application that places outbound calls via the AMI and then
routes them when they pick up by AGI scripts. On every single call, I play
at least one audio file back to the called party if not more, using
app_playback. I currently have it calling through to another Asterisk
system that is mimicking the PSTN for testing purposes.

I did two runs to see if the issue was repeatable. Fully rebooting in
between.

Run 1:

After about 45 minutes of placing approximately roughly 60 calls per
minute, I started to see WARNINGs from various Asterisk modules about "Too
many open files". I ran "lsof -p ASTERISKPID" and saw hundreds of open gsm
files. I promptly turned off my application and cleared out all open
channels using "soft hangup" and the open gsm files did not go away. After
10 minutes the same number of gsm files are open. There were 963 gsm files
open and 1161 total files open by the asterisk process.

Run 2:

The second time I used this watch command to see if it would actually
close some files as it went along: 'watch -n2 "lsof -p ASTERISKPID >
/tmp/foo; echo all; cat /tmp/foo | wc -l; echo gsm; cat /tmp/foo | grep gsm
| wc -l"' I never saw the number of open gsm files go down. I did see the
number of open files fluctuate though. The application ran for
approximately 60 minutes and placed roughly 35 calls per minute that time.
lsof -p ASTERISKPID showed 958 open gsm files and 1154 total open files
when the "Too many open files" warning started popping up again.

In both cases Asterisk basically could not do anything once the file limit
was reached.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0014384 Background leaves files open indefinately
====================================================================== 

---------------------------------------------------------------------- 
 (0099497) mcargile (reporter) - 2009-02-05 08:50
 http://bugs.digium.com/view.php?id=14404#c99497 
---------------------------------------------------------------------- 
I let my application run overnight on SVN trunk (r173458) and it currently
has 215 open files of which 5 are gsm. I would say this was definitely fix. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-05 08:50 mcargile       Note Added: 0099497                          
======================================================================




More information about the asterisk-bugs mailing list