[asterisk-bugs] [Asterisk 0011388]: voicemail directory is not created until user is left a message

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Nov 27 12:40:34 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11388 
====================================================================== 
Reported By:                spditner
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11388
Category:                   Applications/app_voicemail
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 89527 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-27-2007 12:38 CST
Last Modified:              11-27-2007 12:40 CST
====================================================================== 
Summary:                    voicemail directory is not created until user is
left a message
Description: 
eg 1. If for instance, you create a voicemail user, and have them dial in
to set up their account, their spool directory will not yet exist, and they
will be unable to set their greetings. Example solution for this attached.

eg 2. If you do have a message waiting (i.e. stored in IMAP), and your
voicemail directory is missing (for whatever reason), pressing '5' from the
main menu will crash asterisk. backtrace shown in add. info field.
====================================================================== 

---------------------------------------------------------------------- 
 spditner - 11-27-07 12:40  
---------------------------------------------------------------------- 
Index: apps/app_voicemail.c
===================================================================
--- apps/app_voicemail.c        (revision 89527)
+++ apps/app_voicemail.c        (working copy)
@@ -5930,6 +5930,10 @@
        unsigned char buf[256];
        int bytes=0;
 
+   char dir[PATH_MAX], tmpdir[PATH_MAX];
+   create_dirpath(dir, sizeof(dir), vmu->context, vms->username,
"INBOX");
+   create_dirpath(tmpdir, sizeof(tmpdir), vmu->context, vms->username,
"tmp");
+
        if (ast_adsi_available(chan))
        {
                bytes += adsi_logo(buf + bytes); 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-27-07 12:40  spditner       Note Added: 0074418                          
======================================================================




More information about the asterisk-bugs mailing list