[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
Fri May 20 13:12:23 CDT 2011
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=16104
======================================================================
Reported By: blkline
Assigned To: jrose
======================================================================
Project: Asterisk
Issue ID: 16104
Category: Applications/app_voicemail/IMAP
Reproducibility: always
Severity: minor
Priority: normal
Status: acknowledged
Target Version: 1.8.6
Asterisk Version: SVN
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-20 13:12 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.
======================================================================
----------------------------------------------------------------------
(0135204) svnbot (reporter) - 2011-05-20 13:12
https://issues.asterisk.org/view.php?id=16104#c135204
----------------------------------------------------------------------
Repository: asterisk
Revision: 320162
U branches/1.8/apps/app_voicemail.c
------------------------------------------------------------------------
r320162 | jrose | 2011-05-20 13:12:22 -0500 (Fri, 20 May 2011) | 15 lines
Fixes an imapfolder related crash
imapfolders being set in the general section of voicemail would cause the
inbox folder name to
change. Since sound file names are made based on the names of the
folders, this would cause
the audio related to that folder name to change and if Asterisk attempted
to play it, the
channel would instantly hang up when the audio file couldn't be found.
This patch searches for
the name of the folder first to leave existing behavior in tact and if
that fails, it uses
the normal inbox name to get the sound file instead.
(closes issue https://issues.asterisk.org/view.php?id=16104)
Reported by: blkline
Review: https://reviewboard.asterisk.org/r/1215/
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=320162
Issue History
Date Modified Username Field Change
======================================================================
2011-05-20 13:12 svnbot Checkin
2011-05-20 13:12 svnbot Note Added: 0135204
======================================================================
More information about the asterisk-bugs
mailing list