From ec06e092ff9ac053417d62b029eb8c6e7ad1c8a7 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Mon, 10 Nov 2003 23:47:05 +0000 Subject: [PATCH] Minor vm fix git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1719 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_voicemail2.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c index 9921c00bc2..91d57b7357 100755 --- a/apps/app_voicemail2.c +++ b/apps/app_voicemail2.c @@ -2603,9 +2603,11 @@ out: if (res > -1) { ast_stopstream(chan); adsi_goodbye(chan); - res = play_and_wait(chan, "vm-goodbye"); - if (res > 0) - res = 0; + if(valid) { + res = play_and_wait(chan, "vm-goodbye"); + if (res > 0) + res = 0; + } if (useadsi) adsi_unload_session(chan); }