Summary: | ASTERISK-08039: last_message_index is returning the first index | ||
Reporter: | Cristian A. Gaspari (gaspari) | Labels: | |
Date Opened: | 2006-11-01 13:34:07.000-0600 | Date Closed: | 2011-06-07 14:07:56 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_voicemail |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | the last_message_function (non-ODBC version) is returning the first message index it finds. On rare occasions, the Old folder doesn't get renumbered, so messages start with named msg00XX.* When I access the voicemail, if it has only one file, I get the vm-instructions right away. I noticed this problem in 1.2.4. The code in 1.2.13 and 1.4.0-beta3 is the same. Folder permissions are OK though. ****** ADDITIONAL INFORMATION ****** I think the following patch will fix the problem for version 1.2.13: app_voicemail.c.diff: 1476c1476 < for (x = 0 ; x < vmu->maxmsg; x++) { --- > for (x = vmu->maxmsg-1; x >= 0 ; x--) { 1483c1483 < return x - 1; --- > return x; | ||
Comments: | By: Anthony LaMantia (alamantia) 2006-11-01 14:56:31.000-0600 please fax in a disclaimer for you code to digium, and post a diff in svn diff form according to our bug-guidelines. the links to the resources are as follows. http://www.digium.com/bugguidelines.html http://www.digium.com/disclaimer.txt By: Anthony LaMantia (alamantia) 2006-11-01 14:57:11.000-0600 please fax in a disclaimer for you code to digium, and post a diff in svn diff form according to our bug-guidelines. the links to the resources are as follows. http://www.digium.com/bugguidelines.html http://www.digium.com/disclaimer.txt By: jmls (jmls) 2006-11-20 14:34:08.000-0600 gaspari: did you send your disclaimer in as requested ? Thanks By: Jason Parker (jparker) 2006-11-28 14:58:55.000-0600 If the directory doesn't get renumbered properly and there are gaps, this is the wrong way to fix the problem. The real fix would be to find out why the directory doesn't get renumbered. By: Tilghman Lesher (tilghman) 2006-12-11 00:23:30.000-0600 No response from reporter. |