Summary:ASTERISK-07099: [patch] ODBC VM deletes msg 0 when leaving message too short
Reporter:Justin R. Tunney (jtunney)Labels:
Date Opened:2006-06-05 12:01:27Date Closed:2006-06-06 11:59:51
Versions:Frequency of
Environment:Attachments:( 0) detonation_boulevard_bug-asterisk-1.2-31921.patch
Description:In ODBC voicemail, the leave_voicemail() function is incorrectly programmed so that when the message is too short, it calls DELETE() which runs a delete query in ODBC mode.  The DELETE() function is passed '0' for the message number because leave_message() has not yet determined a value for msgnum.  This causes the first message in your mailbox to be deleted when someone leaves you a message that is too short to be saved.

Obviously this can be worked around by setting 'minmessage=0' in voicemail.conf but I believe that the fact that this bug causes messages to be deleted by an unpriviledged caller justifies a severity of 'major'.

Although I have not actually tested trunk, (too much work lol) by examining the code, I am nearly certain that the same issue applies.  The 1.2 patch I've provided will go through on trunk.


Disclaimer on file
Comments:By: Justin R. Tunney (jtunney) 2006-06-05 12:02:02

OMG where did my 105 karma go ????

By: Tilghman Lesher (tilghman) 2006-06-06 11:59:51

Committed to 1.2, merged to trunk.