diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index b21c0e1c6ad76b9ea4fa41dec9c8fa1e58e122b6..c69e7854f6eadf3ecbc59eb78fd54830091503eb 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6686,8 +6686,6 @@ static int notify_new_message(struct ast_channel *chan, struct ast_vm_user *vmu, if (!ast_strlen_zero(vmu->email)) { int attach_user_voicemail = ast_test_flag(vmu, VM_ATTACH); - if (!attach_user_voicemail) - attach_user_voicemail = ast_test_flag((&globalflags), VM_ATTACH); if (attach_user_voicemail) RETRIEVE(todir, msgnum, vmu->mailbox, vmu->context);