[Asterisk-cvs] asterisk/apps app_voicemail.c,1.176,1.177

markster at lists.digium.com markster at lists.digium.com
Tue Nov 30 16:47:49 CST 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv3755/apps

Modified Files:
	app_voicemail.c 
Log Message:
If messages is deleted, don't send it (bug #2957)


Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -d -r1.176 -r1.177
--- app_voicemail.c	28 Nov 2004 21:28:30 -0000	1.176
+++ app_voicemail.c	30 Nov 2004 21:46:29 -0000	1.177
@@ -2175,9 +2175,11 @@
 						free_user(recip);
 					}
 				}
-				notify_new_message(chan, vmu, msgnum, duration, fmt, chan->cid.cid_num, chan->cid.cid_name);
-				STORE(dir, msgnum);
-				DISPOSE(dir, msgnum);
+				if (ast_fileexists(fn, NULL, NULL)) {
+					notify_new_message(chan, vmu, msgnum, duration, fmt, chan->cid.cid_num, chan->cid.cid_name);
+					STORE(dir, msgnum);
+					DISPOSE(dir, msgnum);
+				}
 			} else {
 				res = ast_streamfile(chan, "vm-mailboxfull", chan->language);
 				if (!res)




More information about the svn-commits mailing list