From: Mark Spencer Date: Fri, 21 May 2004 00:55:36 +0000 (+0000) Subject: Stop stream when interrupted by '#' or '*' or '0' (bug #1689) X-Git-Tag: 1.0.0-rc1~417 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0004e8a4bef71c9650760ac51b74589f697bee71;p=thirdparty%2Fasterisk.git Stop stream when interrupted by '#' or '*' or '0' (bug #1689) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3032 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 2dc608e160..8098fe64ac 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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 == '*') {