[asterisk-bugs] [Asterisk 0015259]: MixMonitor is not releasing the file handle on the recorded file
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Jun 17 14:18:16 CDT 2009
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=15259
======================================================================
Reported By: travisghansen
Assigned To: dvossel
======================================================================
Project: Asterisk
Issue ID: 15259
Category: Applications/app_mixmonitor
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Target Version: 1.6.1.2
Asterisk Version: 1.6.1.0
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2009-06-02 22:21 CDT
Last Modified: 2009-06-17 14:18 CDT
======================================================================
Summary: MixMonitor is not releasing the file handle on the
recorded file
Description:
I have been using MixMonitor in my dialplan through all the 1.6.0.x line
and recently updated to 1.6.1.0. Upon update it quit working.
My scenario is as follows:
I accept an incoming call, prompt for some IVR, start MixMonitor with b
option. Subsequently I initiate a Dial command to an external endpoint.
On answer the conversation starts recording to a temp directory on my
server. After either end hangs up, the dialplan continues to the h
extension where I launch an AGI script to convert the wav sound clip to mp3
and do some other post processing.
In all builds prior to 1.6.1 this all worked great. However starting with
1.6.1 when I externally launch the sox command via the agi script the
resultant file has no audio. I did some testing and discovered that this
behavior is the same as if I am mid-call even though the line is hung up.
======================================================================
----------------------------------------------------------------------
(0106569) dvossel (administrator) - 2009-06-17 14:18
https://issues.asterisk.org/view.php?id=15259#c106569
----------------------------------------------------------------------
The change I'm about to commit requires the use of StopMixMonitor to
guarantee the file is available. I believe fact that you were able to use
the AGI script in the h extension in 1.6.0 and not in 1.6.1 was pure luck.
This situation was caused by a race condition that just happened not to
fail in 1.6.0 for your specific dialplan. StopMixMonitor closes and
releases the file handle now before returning to the dialplan.
Issue History
Date Modified Username Field Change
======================================================================
2009-06-17 14:18 dvossel Note Added: 0106569
======================================================================
More information about the asterisk-bugs
mailing list