[asterisk-bugs] [Asterisk 0018498]: [patch] [regression] Resequencing of mailbox not working as expected.

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jan 19 15:56:19 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18498 
====================================================================== 
Reported By:                JJCinAZ
Assigned To:                jpeeler
====================================================================== 
Project:                    Asterisk
Issue ID:                   18498
Category:                   Applications/app_voicemail
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Target Version:             1.4.40
Asterisk Version:           1.4.38 
JIRA:                       SWP-2758 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-12-18 11:32 CST
Last Modified:              2011-01-19 15:56 CST
====================================================================== 
Summary:                    [patch] [regression] Resequencing of mailbox not
working as expected.
Description: 
Changes made on 2010-10-26 by jpeeler [2010-10-26 18:33 +0000 [r293118] 
Jeff Peeler <jpeeler at digium.com>] to resequence_mailbox() cause the whole
routine to not be effective.  

The function was changed to go up to the actual number of messages found
in the directory (count_msg parameter) instead of the old limit of
max_msgs+10.  The problem introduced is one where count_msg is 0 because
the msg0000.<fmt> file is not there, yet msg0001.<fmt> does exist.  This
will cause the following errors now in the log:

Dec 17 12:44:10] NOTICE[3723] app_voicemail.c: Resequencing Mailbox:
/var/spool/asterisk/voicemail/xx/7104/INBOX, expected 0 but found 1
message(s) in box with max threshold of 100.
[Dec 17 12:44:17] WARNING[3723] app_voicemail.c: No message attribute
file?!! (/var/spool/asterisk/voicemail/xx/7104/INBOX/msg0000.txt)


======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0018486 [patch] Voicemail files out of sequence
====================================================================== 

---------------------------------------------------------------------- 
 (0130743) njett (reporter) - 2011-01-19 15:56
 https://issues.asterisk.org/view.php?id=18498#c130743 
---------------------------------------------------------------------- 
I'm experiencing these symptoms on a new install of Asterisk 1.8.1.1.  In
the asterisk log I see:

[Jan 19 13:28:12] WARNING[5166] app_voicemail.c: No message attribute
file?!! (/var/spool/asterisk/voicemail/default/243/INBOX/msg0000.txt)

and looking in the /var/spool/asterisk/voicemail/default/243/INBOX/
directory there is no msg0000.txt but there is an msg0001.txt and .wav
file.

I tried to apply the patch here but I get the following:

pbx:/usr/src/asterisk-1.8.1.1# wget
'https://issues.asterisk.org/file_download.php?file_id=28223&type=bug' -O -
| patch -p0
--2011-01-19 15:55:16-- 
https://issues.asterisk.org/file_download.php?file_id=28223&type=bug
Resolving issues.asterisk.org... 76.164.171.231, 2001:470:e0d4::e7
Connecting to issues.asterisk.org|76.164.171.231|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3402 (3.3K) [text/plain]
Saving to: `STDOUT'

100%[==============================================================================================================>]
3,402       --.-K/s   in 0.04s

2011-01-19 15:55:16 (90.6 KB/s) - `-' saved [3402/3402]

patching file apps/app_voicemail.c
Hunk https://issues.asterisk.org/view.php?id=1 FAILED at 2906.
Hunk https://issues.asterisk.org/view.php?id=2 FAILED at 4557.
Hunk https://issues.asterisk.org/view.php?id=3 FAILED at 4568.
Hunk https://issues.asterisk.org/view.php?id=4 FAILED at 6027.
4 out of 4 hunks FAILED -- saving rejects to file apps/app_voicemail.c.rej 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-19 15:56 njett          Note Added: 0130743                          
======================================================================




More information about the asterisk-bugs mailing list