[asterisk-bugs] [Asterisk 0015259]: MixMonitor is not releasing the file handle on the recorded file
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Jun 11 02:52:12 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: feedback
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-11 02:52 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.
======================================================================
----------------------------------------------------------------------
(0106273) travisghansen (reporter) - 2009-06-11 02:52
https://issues.asterisk.org/view.php?id=15259#c106273
----------------------------------------------------------------------
I tried with 1.6.1.1 including the StopMixMonitor in the h extension and
still no worky.
Here is the bit from my dialplan...
exten =>
qa-record-menu,1,Read(SecurityTraxCustomerID,hivalley/key-in-securitytrax-id,10,s,3,7);
exten => qa-record-menu,n,Wait(1);
exten => qa-record-menu,n,SayDigits(${SecurityTraxCustomerID});
exten =>
qa-record-menu,n,Verbose(${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}:
${SecurityTraxCustomerID});
exten => qa-record-menu,n,Read(YesNo,hivalley/confirm23,1)
exten => qa-record-menu,n,GotoIf($["${YesNo}" != "2"]?1);
exten =>
qa-record-menu,n,Set(MY_TIME=${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)});
exten =>
qa-record-menu,n,Set(MY_RECORDED_AUDIO=/tmp/recorded_audio_customer_number_${SecurityTraxCustomerID}_${MY_TIME});
exten => qa-record-menu,n,Set(MY_RECORDED_AUDIO_EXTENSION=wav);
exten =>
qa-record-menu,n,Set(MY_RECORDED_AUDIO_FILENAME=${MY_RECORDED_AUDIO}.${MY_RECORDED_AUDIO_EXTENSION});
;exten => qa-record-menu,n,Monitor(wav,${MY_RECORDED_AUDIO},mb);
exten => qa-record-menu,n,MixMonitor(${MY_RECORDED_AUDIO_FILENAME},b);
exten => qa-record-menu,n,Playback(vm-dialout);
exten => qa-record-menu,n,Goto(qa-record-menu-extra,qa-record-menu,1);
exten => qa-record-menu,n,Hangup();
;exten => h,1,Verbose(Cleaning up);
;exten => h,n,Verbose(${MY_RECORDED_AUDIO_EXTENSION});
[qa-record-menu-extra]
exten =>
qa-record-menu,1,Dial(SIP/${qa_office_did}@vitel-outbound,30,TtWwg);
;exten => qa-record-menu,n,Verbose(Audio file:
${MY_RECORDED_AUDIO_FILENAME});
;exten => qa-record-menu,n,StopMonitor();
exten => qa-record-menu,n,Playback(beep);
exten => qa-record-menu,n,Playback(vm-goodbye);
exten => qa-record-menu,n,Hangup();
exten => h,1,Verbose(Cleaning up);
exten => h,n,Verbose(Dial status: ${DIALSTATUS});
exten => h,n,StopMixMonitor();
;exten => h,n,Verbose(${MY_RECORDED_AUDIO_FILENAME});
exten => h,n,GotoIf($["${DIALSTATUS}" = "ANSWER"]?sendfile:done);
exten =>
h,n(sendfile),AGI(convertAudioFile.php,"--filename=${MY_RECORDED_AUDIO_FILENAME}","--new_type=mp3");
exten =>
h,n,AGI(sendcustomerfile.php,"--company_id=${securitytrax_company_id}","--filename=${CONVERTED_FILENAME}","--customer_id=${SecurityTraxCustomerID}");
;exten => h,n,AGI(deleteFile.php,"--filename=${CONVERTED_FILENAME}");
;exten =>
h,n,AGI(deleteFile.php,"--filename=${MY_RECORDED_AUDIO_FILENAME}");
exten => h,n(done),Hangup();
Issue History
Date Modified Username Field Change
======================================================================
2009-06-11 02:52 travisghansen Note Added: 0106273
======================================================================
More information about the asterisk-bugs
mailing list