[Asterisk-cvs] asterisk/apps app_voicemail.c,1.122,1.123

malcolmd at lists.digium.com malcolmd at lists.digium.com
Wed Jun 30 14:44:19 CDT 2004


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

Modified Files:
	app_voicemail.c 
Log Message:
Bug #1957.  Take two


Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -d -r1.122 -r1.123
--- app_voicemail.c	30 Jun 2004 18:11:56 -0000	1.122
+++ app_voicemail.c	30 Jun 2004 18:30:10 -0000	1.123
@@ -833,7 +833,10 @@
 	time_t t;
 	struct tm tm;
 	struct vm_zone *the_zone = NULL;
-	
+	if (vmu && !ast_strlen_zero(vmu->email)) {
+		ast_log(LOG,WARNING, "E-mail address missing for mailbox [%s].  E-mail will not be sent.\n", vmu->mailbox);
+		return(0);
+	}
 	if (!strcmp(format, "wav49"))
 		format = "WAV";
 	ast_log(LOG_DEBUG, "Attaching file '%s', format '%s', uservm is '%d', global is %d\n", attach, format, attach_user_voicemail, attach_voicemail);




More information about the svn-commits mailing list