aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-21 00:55:36 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-21 00:55:36 +0000
commitef5fc9e077016898cfbe96a2a39222e482395c8b (patch)
treed1d035318bc14ee81c3d816dee2514af01f57f34 /apps/app_voicemail.c
parent02bcccd6c2c6883c763df52f927d55afbb97deec (diff)
Stop stream when interrupted by '#' or '*' or '0' (bug #1689)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3032 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-xapps/app_voicemail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 2dc608e16..8098fe64a 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 == '*') {