[asterisk-bugs] [Asterisk 0012764]: build app_voicemail with IMAP_STORAGE .voicemessage forwording failed.

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jul 8 10:29:51 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12764 
====================================================================== 
Reported By:                balsamcn
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   12764
Category:                   Applications/app_voicemail
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.20 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             05-30-2008 15:52 CDT
Last Modified:              07-08-2008 10:29 CDT
====================================================================== 
Summary:                    build app_voicemail with IMAP_STORAGE .voicemessage
forwording failed.
Description: 
build voicemail with IMAP_STORAGE. call into voicemail box to forward a
message listened to another voice mailbox extension.got failed.
on cli:
Warning 'Unable to open
/var/spool/asterisk/voicemail/default/202//msg0000.txt in read-only mode'.
As fact, the file does not exit there when attempt to forward the
message.
the differece is you can find the wav file at
/var/spool/asterisk/voicemail/defaul/202/tmp/msg0000.WAV when listening.
Things like IAMP works sometimes but on forwarding.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0012896 Cannot transfer voicemail in IMAP
====================================================================== 

---------------------------------------------------------------------- 
 putnopvut - 07-08-08 10:29  
---------------------------------------------------------------------- 
I have found the problem here, have reproduced it locally, and have made a
quick-and-dirty fix that makes forwarding possible, but there's no way I
could commit it as-is.

What was throwing me off is that I thought the source of the problem was
what caused the warning on the console to appear, but that is an indirect
result of the actual problem.

When using file-based storage of voicemails, two files are created: the
actual sound file, and a text file which contains information about the
voicemail, such as its duration, the time it was sent, etc. When using IMAP
storage, the information about the voicemail is stored as MIME headers in
the message that is generated, so there's no need to try to manipulate a
text file at all. The failure occurs because there is no text file on the
file system for the message which is being forwarded. What I've done to
correct this problem is to place a "return 0;" immediately at the beginning
of the vm_forwardoptions function. This allows me to be able to forward
messages correctly. The problem with this method is that it still displays
warning on the console about not being able to copy the text file and it
disables the ability to prepend a message to the voicemail.

I will work on a fix for this today and hopefully have it done soon.
Thanks for your patience on this. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-08-08 10:29  putnopvut      Note Added: 0089888                          
======================================================================




More information about the asterisk-bugs mailing list