Minor vm fix

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1719 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2003-11-10 23:47:05 +00:00
parent ccb2b96262
commit ec06e092ff
1 changed files with 5 additions and 3 deletions

View File

@ -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);
}