[asterisk-bugs] [Asterisk 0018937]: [patch] 'Silence' is truncated in Record()

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Mar 7 18:45:37 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18937 
====================================================================== 
Reported By:                var
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18937
Category:                   Applications/app_record
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.2.17 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-03-07 16:59 CST
Last Modified:              2011-03-07 18:45 CST
====================================================================== 
Summary:                    [patch] 'Silence' is truncated in Record()
Description: 
When using Record with the silence detection feature, the stream is written
out to the given file. However, if only 'silence' is detected, this file is
then truncated to the first second of the recording (8016 bytes for alaw
e1).

This causes a problem for IVR applications, even if only silence is
detected it can still be of use in data collection as silence may not
really be all silence (e.g. someone talking quietly) or this data is
utilised for other verification reasons. Silence detection should not have
right to remove any recorded data, at the very least it should be a
configuration or argument option.
====================================================================== 

---------------------------------------------------------------------- 
 (0132711) var (reporter) - 2011-03-07 18:45
 https://issues.asterisk.org/view.php?id=18937#c132711 
---------------------------------------------------------------------- 
This can be tested via the sample AEL code:

context mycontext {

    80000000 => {
      Set(count=0);
    testing:
      Set(count=$[${count} +1]);
      //TESTING, silence 10 - max 13//
      Set(start=${EPOCH});
      Record(/tmp/silenceRecording${count}.alaw,10,13,u);
      Set(rlength=$[${EPOCH} - ${start} - 1]);
      NoOP(SILENCE IS: ${RECORD_STATUS});
      NoOP(RLENGTH IS: ${rlength});
      jump 80000000,testing at mycontext;
} 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-07 18:45 var            Note Added: 0132711                          
======================================================================




More information about the asterisk-bugs mailing list