[asterisk-bugs] [Asterisk 0016104]: app_voicemail appending IMAPFOLDER to 'vm-' to create filename for prompt to play.

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 5 11:04:24 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16104 
====================================================================== 
Reported By:                blkline
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16104
Category:                   Applications/app_voicemail/IMAP
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.0.15 
JIRA:                       SWP-3147 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-20 13:32 CDT
Last Modified:              2011-05-05 11:04 CDT
====================================================================== 
Summary:                    app_voicemail appending IMAPFOLDER to 'vm-' to
create filename for prompt to play.
Description: 
If I set  IMAPFOLDER=#voicemail.INBOX, then press "2" to change to new
folder, the app hangs up on the call.  Looking at the console, I find the
error:

file.c:950 ast_streamfile: Unable to open vm-#voicemail.INBOX (format
0x4 (ulaw)): No such file or directory

If I create a symlink from vm-INBOX.gsm to vm-#voicemail.INBOX.gsm things
work correctly.   Clearly, the app is using IMAPFOLDER to create a file
name, which isn't going to work in all cases.
====================================================================== 

---------------------------------------------------------------------- 
 (0134503) russell (administrator) - 2011-05-05 11:04
 https://issues.asterisk.org/view.php?id=16104#c134503 
---------------------------------------------------------------------- 
This behavior is pretty bizarre.  I propose this as the fix:

1) Document the current behavior for how it generates filenames to play.

2) Before playing back the dynamically generated filename, check to see if
it exists.  If it doesn't exist, fall back to the version of the filename
without the custom IMAPFOLDER in the filename. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-05 11:04 russell        Note Added: 0134503                          
======================================================================




More information about the asterisk-bugs mailing list