Fixing voicemail's error in checking max silence vs min message length
authorDavid Brooks <dbrooks@digium.com>
Fri, 26 Jun 2009 20:13:51 +0000 (20:13 +0000)
committerDavid Brooks <dbrooks@digium.com>
Fri, 26 Jun 2009 20:13:51 +0000 (20:13 +0000)
commit9c6f164227c75e58cea271848476cb31fef79121
tree69ecc1c600aaa69a9a239bd66410f5847acd9133
parenta7d053fbb1c5609ac176f19922046a9daf0aeaad
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 #15331)
Reported by: markd

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@203721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_voicemail.c