]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5694 --resolve
authorKen Rice <krice@freeswitch.org>
Wed, 14 Aug 2013 14:05:14 +0000 (09:05 -0500)
committerKen Rice <krice@freeswitch.org>
Wed, 14 Aug 2013 14:09:22 +0000 (09:09 -0500)
src/mod/applications/mod_voicemail/mod_voicemail.c

index 41f7cef5d61dcdd7b284a75057143b85351d4cd9..e7d4da79ca9061585306f2bb66553e84084e3b4f 100644 (file)
@@ -2876,7 +2876,7 @@ static switch_status_t deliver_vm(vm_profile_t *profile,
                update_mwi(profile, myid, domain_name, myfolder, MWI_REASON_NEW);
        }
 
-       if (send_mail && !zstr(vm_email) && switch_file_exists(file_path, pool) == SWITCH_STATUS_SUCCESS) {
+       if (send_mail && (!zstr(vm_email) || !zstr(vm_notify_email)) && switch_file_exists(file_path, pool) == SWITCH_STATUS_SUCCESS) {
                switch_event_t *event;
                char *from;
                char *body;