[asterisk-bugs] [Asterisk 0015331]: [patch] Log message does not match conditional check
Asterisk Bug Tracker
noreply at bugs.digium.com
Fri Jun 26 15:11:48 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: closed
Asterisk Version: 1.4.25
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2009-06-15 07:48 CDT
Last Modified: 2009-06-26 15:11 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");
======================================================================
----------------------------------------------------------------------
(0107048) svnbot (reporter) - 2009-06-26 15:11
https://issues.asterisk.org/view.php?id=15331#c107048
----------------------------------------------------------------------
Repository: asterisk
Revision: 203720
_U trunk/
------------------------------------------------------------------------
r203720 | dbrooks | 2009-06-26 15:11:47 -0500 (Fri, 26 Jun 2009) | 22
lines
Blocked revisions 203719 via svnmerge
........
r203719 | dbrooks | 2009-06-26 15:03:42 -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=203720
Issue History
Date Modified Username Field Change
======================================================================
2009-06-26 15:11 svnbot Note Added: 0107048
======================================================================
More information about the asterisk-bugs
mailing list