[asterisk-bugs] [Asterisk 0015331]: [patch] Log message does not match conditional check

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jun 26 15:03:44 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15331 
====================================================================== 
Reported By:                markd
Assigned To:                dbrooks
====================================================================== 
Project:                    Asterisk
Issue ID:                   15331
Category:                   Applications/app_voicemail
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.25 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-15 07:48 CDT
Last Modified:              2009-06-26 15:03 CDT
====================================================================== 
Summary:                    [patch] Log message does not match conditional check
Description: 
I beleive the following lines to be incorrect.  The comparitor should be
">=" and not "<=" or the log message should be reworded.

if (maxsilence <= vmminsecs)
      ast_log(AST_LOG_WARNING, "maxsilence should be less than minmessage
or you may get empty messages\n");

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

---------------------------------------------------------------------- 
 (0107046) svnbot (reporter) - 2009-06-26 15:03
 https://issues.asterisk.org/view.php?id=15331#c107046 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 203719

U   branches/1.4/apps/app_voicemail.c

------------------------------------------------------------------------
r203719 | dbrooks | 2009-06-26 15:03:43 -0500 (Fri, 26 Jun 2009) | 16
lines

Fixing voicemail's error in checking max silence vs min message length

Max silence was represented in milliseconds, yet vmminsecs (minmessage)
was represented
as seconds.

Also, the inequality was reversed. The warning, if triggered, was "Max
silence should 
be less than minmessage or you may get empty messages", which should have
been logged 
if max silence was greater than minmessage, but the check was for less
than.

Also, conforming if statement to coding guidelines.

closes issue https://issues.asterisk.org/view.php?id=15331)
Reported by: markd

Review: https://reviewboard.asterisk.org/r/293/

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=203719 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-26 15:03 svnbot         Checkin                                      
2009-06-26 15:03 svnbot         Note Added: 0107046                          
======================================================================




More information about the asterisk-bugs mailing list