[asterisk-bugs] [Asterisk 0018998]: [patch] Voicemail doesn't read/delete messages in one case

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Mar 31 06:18:51 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18998 
====================================================================== 
Reported By:                tootai
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18998
Category:                   Applications/app_voicemail
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.4.40 
JIRA:                        
Regression:                 No 
Reviewboard Link:           https://reviewboard.asterisk.org/r/1153/ 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-03-19 05:57 CDT
Last Modified:              2011-03-31 06:18 CDT
====================================================================== 
Summary:                    [patch] Voicemail doesn't read/delete messages in
one case
Description: 
When listening the voicemailbox and new callers leave a new message
something goes wrong: after the user has read and deleted all messages, the
last one is not destroyed and the new incoming recorded messages are lost.

Below the relevant logs of an user reading his mailbox with 16 messages
waiting (#<b></b>0 to #<b></b>15). During his reading, a new message was
left while reading message #<b></b>5. All 16 messages where destroyed,
voicemailbox should and has one message, number #<b></b>16. But when
calling Voicemailmain, I get:
 
[2011-03-19 11:15:28] NOTICE[28981] app_voicemail.c: Resequencing Mailbox:
/var/spool/asterisk/voicemail/default/100/INBOX, expected 0 but found 1
message(s) in box with max threshold of 100.

app_voicemail.c:5917 play_message: No message attribute file?!!
(/var/spool/asterisk/voicemail/default/100/INBOX/msg0000.txt)

dh at chacomx:/var/spool/asterisk/voicemail/default/100/INBOX$ ls -al
total 532
drwxr-xr-x 2 root root   4096 2011-03-19 11:15 .
drwxr-xr-x 8 root root   4096 2011-03-19 11:14 ..
-rwxr-xr-x 1 root root  45144 2011-03-18 22:00 msg0016.gsm
-rw-r--r-- 1 root root    264 2011-03-18 22:00 msg0016.txt
-rwxr-xr-x 1 root root 437804 2011-03-18 22:00 msg0016.wav
-rwxr-xr-x 1 root root  44520 2011-03-18 22:00 msg0016.WAV

So Asterisk is looking for msg0000 but found msg0016. There is no
possibility to treat this message, only rename the file as msg0000.* give
the possibility to listen and delete it.
====================================================================== 

---------------------------------------------------------------------- 
 (0133200) alecdavis (manager) - 2011-03-31 06:18
 https://issues.asterisk.org/view.php?id=18998#c133200 
---------------------------------------------------------------------- 
On the console did you get.

[2011-04-01 00:13:13] NOTICE[6378]: app_voicemail.c:6070 close_mailbox: 2
messages arrived while mailbox was open

I just tried it again.
Open mailbox, you have 1 New message.
-rw------- 1 root root  1490 Apr  1 00:08 msg0000.WAV
-rw------- 1 root root 14124 Apr  1 00:08 msg0000.wav
-rw-r--r-- 1 root root   252 Apr  1 00:08 msg0000.txt
-rw------- 1 root root  1452 Apr  1 00:08 msg0000.gsm

Left 2 more messages.
-rwxr-xr-x 1 root root   125 Apr  1 00:12 msg0001.WAV
-rwxr-xr-x 1 root root   684 Apr  1 00:12 msg0001.wav
-rwxr-xr-x 1 root root    66 Apr  1 00:12 msg0001.gsm
-rw-r--r-- 1 root root   252 Apr  1 00:12 msg0001.txt
-rwxr-xr-x 1 root root  3960 Apr  1 00:12 msg0002.WAV
-rwxr-xr-x 1 root root 38764 Apr  1 00:12 msg0002.wav
-rwxr-xr-x 1 root root  3993 Apr  1 00:12 msg0002.gsm
-rw-r--r-- 1 root root   252 Apr  1 00:13 msg0002.txt

Pressed 7 to delete my only message, hangup.

-rwxr-xr-x 1 root root   125 Apr  1 00:12 msg0000.WAV
-rwxr-xr-x 1 root root   684 Apr  1 00:12 msg0000.wav
-rwxr-xr-x 1 root root    66 Apr  1 00:12 msg0000.gsm
-rw-r--r-- 1 root root   252 Apr  1 00:12 msg0000.txt
-rwxr-xr-x 1 root root  3960 Apr  1 00:12 msg0001.WAV
-rwxr-xr-x 1 root root 38764 Apr  1 00:12 msg0001.wav
-rwxr-xr-x 1 root root  3993 Apr  1 00:12 msg0001.gsm
-rw-r--r-- 1 root root   252 Apr  1 00:13 msg0001.txt

There may be a difference between SVN and 1.4.40, I'm testing with SVN
downloaded an hour or so ago. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-31 06:18 alecdavis      Note Added: 0133200                          
======================================================================




More information about the asterisk-bugs mailing list