[asterisk-bugs] [Asterisk 0015685]: [patch] WaitForSilence never exits - no dsp.conf

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Aug 9 14:44:08 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15685 
====================================================================== 
Reported By:                david_s5
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15685
Category:                   Applications/app_waitforsilence
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 211031 
Request Review:              
====================================================================== 
Date Submitted:             2009-08-09 12:38 CDT
Last Modified:              2009-08-09 14:44 CDT
====================================================================== 
Summary:                    [patch] WaitForSilence never exits - no dsp.conf
Description: 
WaitForSilence to anything other than 1, WaitForSilence never exits

It is a bug in dsp.c. It does not properly init
thresholds[THRESHOLD_SILENCE] 
if the conf file is missing and does not warn if the file is missing.. 

I found that because I did not have a dsp.conf file in /etc/asterisk the
dialplan entry exten => s,1,WaitForSilence(4000,1,60) would be stuck. 


====================================================================== 

---------------------------------------------------------------------- 
 (0108827) dant (reporter) - 2009-08-09 14:44
 https://issues.asterisk.org/view.php?id=15685#c108827 
---------------------------------------------------------------------- 
Patch to trunk attached...
* Defines a default silence threshold constant set to the current default
of 256
* If the config file is not present, issues a warning saying that it will
use the default silence threshold and applies the default silence
threshold
* Where the variable was set to a static value, i.e. in the event that the
config existed but didn't define the variable or if it was set to an
invalid value, it now uses the constant to apply the default value. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-09 14:44 dant           Note Added: 0108827                          
======================================================================




More information about the asterisk-bugs mailing list