[asterisk-commits] mmichelson: trunk r71952 -	/trunk/apps/app_voicemail.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Tue Jun 26 17:45:16 CDT 2007
    
    
  
Author: mmichelson
Date: Tue Jun 26 17:45:16 2007
New Revision: 71952
URL: http://svn.digium.com/view/asterisk?view=rev&rev=71952
Log:
The variable msgnum was being overwritten if IMAP storage was enabled.
Put necessary #ifndef's around the line which would overwrite.
Modified:
    trunk/apps/app_voicemail.c
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=71952&r1=71951&r2=71952
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Tue Jun 26 17:45:16 2007
@@ -3232,7 +3232,9 @@
 						ast_destroy_realtime("voicemail_data", "id", tmpid, NULL);
 					}
 				} else {
+#ifndef IMAP_STORAGE
 					msgnum = last_message_index(vmu, dir) + 1;
+#endif
 					make_file(fn, sizeof(fn), dir, msgnum);
 
 					/* assign a variable with the name of the voicemail file */ 
    
    
More information about the asterisk-commits
mailing list