[asterisk-bugs] [DAHDI-tools 0015307]: [patch] allow dahdi_monitor to record directly to .wav files

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jun 23 18:45:22 CDT 2009


The following issue has been RESOLVED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15307 
====================================================================== 
Reported By:                mspiceland
Assigned To:                sruffell
====================================================================== 
Project:                    DAHDI-tools
Issue ID:                   15307
Category:                   NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-06-10 11:15 CDT
Last Modified:              2009-06-23 18:45 CDT
====================================================================== 
Summary:                    [patch] allow dahdi_monitor to record directly to
.wav files
Description: 
Currently dahdi_monitor can record to raw uncompressed 16-bit signed 8khz
files.  When troubleshooting, it is often useful to open up the recoded
files into external programs for analysis where these raw files are either
unsupported or it is inconvenient to import the raw files.  For this
reason, recording the uncompressed audio directly to .wav files would be
useful.

I will attach a patch that allows one to save the recordings as .wav
files.  The audio is still the same uncompressed PCM format.  If the user
provides filenames with .wav, it prepends the file with the proper header
info.  A new signal handler is installed so that when the user hits cntrl-c
to exit, it will break out of the main loop and give the dahdi_monitor an
opportunity to go back to the recorded files and insert the proper size
information into the header.
====================================================================== 

---------------------------------------------------------------------- 
 (0106886) svnbot (reporter) - 2009-06-23 18:45
 https://issues.asterisk.org/view.php?id=15307#c106886 
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 6709

U   tools/trunk/dahdi_monitor.c

------------------------------------------------------------------------
r6709 | sruffell | 2009-06-23 18:45:21 -0500 (Tue, 23 Jun 2009) | 8 lines

dahdi_monitor: Allow dahdi_monitor to save recordings in wav format.

This is a patch that will allow dahdi_monitor to save recordings directly
in
wav format for convenience.  If the output files extension is '.wav',
dahdi_monitor will add the wave header onto the output file.

(closes issue https://issues.asterisk.org/view.php?id=15307)
Patch by: mspiceland
------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=6709 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-23 18:45 svnbot         Note Added: 0106886                          
2009-06-23 18:45 svnbot         Status                   new => assigned     
2009-06-23 18:45 svnbot         Assigned To               => sruffell        
2009-06-23 18:45 svnbot         Status                   assigned => resolved
2009-06-23 18:45 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list