aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-30 18:30:10 +0000
committermalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-30 18:30:10 +0000
commite9a7f53a104581d2944f4598248e18015758b277 (patch)
treec565556d8869bbc2da6fd0658750a4a1cad53991
parente53e664ff48e93095311cb3a055cbb75fa5e9372 (diff)
Bug #1957. Take two
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3367 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xapps/app_voicemail.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 48b8665fe..2ee447787 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -833,7 +833,10 @@ static int sendmail(char *srcemail, struct ast_vm_user *vmu, int msgnum, char *m
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);