[svn-commits] mmichelson: branch 1.4 r89999 - /branches/1.4/apps/app_voicemail.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Nov 28 11:30:48 CST 2007


Author: mmichelson
Date: Wed Nov 28 11:30:47 2007
New Revision: 89999

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89999
Log:
Recording greetings when using IMAP storage was causing zero-length files to be stored.
Since greetings are not retrieved from IMAP anyway, it is pointless to attempt storing them there.

(closes issue #11359, reported by spditner, patched by me)


Modified:
    branches/1.4/apps/app_voicemail.c

Modified: branches/1.4/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=89999&r1=89998&r2=89999
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Wed Nov 28 11:30:47 2007
@@ -2310,6 +2310,10 @@
 	void *buf;
 	int tempcopy = 0;
 	STRING str;
+
+	/*Greetings are not retrieved from IMAP, so there is no reason to attempt storing them there either*/
+	if(msgnum < 0)
+		return 0;
 	
 	/* Attach only the first format */
 	fmt = ast_strdupa(fmt);




More information about the svn-commits mailing list