diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-05-13 01:50:10 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-05-13 01:50:10 +0000 |
commit | 9166d6873b797fa4c75491ac098d9468b6a9b28f (patch) | |
tree | c59c3f044f5ac305e0d5c0ad24bd628c8b62ccbf | |
parent | 08e1b974f6732d1ddd3bf93fd193037356c8b587 (diff) |
Fix VM "goodbye" for real
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1010 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | apps/app_voicemail2.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c index ed6f0f1ca..50d7bc49b 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); } |