[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
Tue Nov 3 23:39:46 CST 2009


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:                        
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:              2009-11-03 23:39 CST
====================================================================== 
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.
====================================================================== 

---------------------------------------------------------------------- 
 (0113100) dhartman (reporter) - 2009-11-03 23:39
 https://issues.asterisk.org/view.php?id=16104#c113100 
---------------------------------------------------------------------- 
I can confirm this behavior on Asterisk 1.6.1.8 and will clarify.

imapfolder MUST be set to INBOX
imapparentfolder can be anything

For example:

imapparentfolder=AAINBOX
imapfolder=INBOX

New incoming messages are stored in INBOX
Old, Work, Family, Friends messages are stored as subfolders under
AAINBOX

New incoming messages would be stored properly in imapfolder if specified
as something other than INBOX, but app_voicemail is looking for a sound
file called vm-$(imapfolder).  Since vm-$(imapfolder).gsm|ulaw does not
exist unless the $(imapfolder) is set to INBOX (or presumably another name
which matches an existing vm- prompt), app_voicemail exits with a warning
that could not find vm-$(imapfolder)



(if imapfolder is set to AAINBOX the following is seen)

[Nov  3 22:28:32] WARNING[4062]: file.c:650 ast_openstream_full: File
vm-AAINBOX does not exist in any format
[Nov  3 22:28:32] WARNING[4062]: file.c:933 ast_streamfile: Unable to open
vm-AAINBOX (format 0x1000 (g722)): No such file or directory 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-03 23:39 dhartman       Note Added: 0113100                          
======================================================================




More information about the asterisk-bugs mailing list