Stop stream when interrupted by '#' or '*' or '0' (bug #1689)
authorMark Spencer <markster@digium.com>
Fri, 21 May 2004 00:55:36 +0000 (00:55 +0000)
committerMark Spencer <markster@digium.com>
Fri, 21 May 2004 00:55:36 +0000 (00:55 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3032 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 2dc608e..8098fe6 100755 (executable)
@@ -1577,6 +1577,8 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int
                                res = 0;
                        }
                }
+               if (res > 0)
+                       ast_stopstream(chan);
                /* Check for a '*' here in case the caller wants to escape from voicemail to something
                other than the operator -- an automated attendant or mailbox login for example */
                if (res == '*') {