--- app_voicemail.c.orig 2007-04-20 14:19:18.000000000 -0400 +++ app_voicemail.c 2007-05-21 16:48:37.000000000 -0400 @@ -8015,8 +8015,10 @@ if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "Saving message as is\n"); ast_stream_and_wait(chan, "vm-msgsaved", chan->language, ""); - STORE(recordfile, vmu->mailbox, vmu->context, -1, chan, vmu, fmt, *duration, vms); - DISPOSE(recordfile, -1); + if(playfile) { + STORE(recordfile, vmu->mailbox, vmu->context, -1, chan, vmu, fmt, *duration, vms); + DISPOSE(recordfile, -1); + } cmd = 't'; return res; }