aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-11-10 23:47:05 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-11-10 23:47:05 +0000
commit9ca3b9f3692b2508093d2b7943849888d6f01ce3 (patch)
tree1575785cb0dd322fe74163477fa92dde353a954c /apps
parenta224b0098119614c53fdf8c71819b22974548065 (diff)
Minor vm fix
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1719 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_voicemail2.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c
index 9921c00bc..91d57b735 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);
}