From: Mark Spencer Date: Tue, 13 May 2003 01:50:10 +0000 (+0000) Subject: Fix VM "goodbye" for real X-Git-Tag: 0.5.0~486 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ec55a027f68cb1cba50708ec04cdbeade093b92;p=thirdparty%2Fasterisk.git Fix VM "goodbye" for real git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1010 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c index ed6f0f1ca1..50d7bc49bd 100755 --- a/apps/app_voicemail2.c +++ b/apps/app_voicemail2.c @@ -2134,13 +2134,6 @@ static int vm_execmain(struct ast_channel *chan, void *data) case '0': cmd = vm_options(chan, vmu, &vms, vmfmts); break; - case '#': - ast_stopstream(chan); - adsi_goodbye(chan); - cmd = play_and_wait(chan, "vm-goodbye"); - if (cmd > 0) - cmd = '#'; - break; default: /* Nothing */ cmd = vm_instructions(chan, &vms); break; @@ -2158,6 +2151,9 @@ out: if (res > -1) { ast_stopstream(chan); adsi_goodbye(chan); + res = play_and_wait(chan, "vm-goodbye"); + if (res > 0) + res = 0; if (useadsi) adsi_unload_session(chan); }