[asterisk-bugs] [Asterisk 0014404]: app_playback does not seem to be closing audio files.
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Feb 4 13:44:54 CST 2009
The following issue has been marked as UNRELATED TO issue 0013484.
======================================================================
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: new
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-04 13:44 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.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2009-02-04 13:44 snuffy Relationship deleted related to 0013484
======================================================================
More information about the asterisk-bugs
mailing list