summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-11-13 05:43:07 +0000
committerMark Spencer <markster@digium.com>2003-11-13 05:43:07 +0000
commitd886e2a557bbe627c9da609bda92efc2e01d9cbf (patch)
tree3476f0b38f8e133c3f1ad98214c9ac20327ae7dc /apps
parentacf41ac2dfac3fd21b1cd18561642eb8073ae089 (diff)
More generally stop streaming when interrupted
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_voicemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index f8c5359f3..7ff26243b 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -864,6 +864,7 @@ static int play_and_wait(struct ast_channel *chan, char *fn)
if (d)
return d;
d = ast_waitstream(chan, AST_DIGIT_ANY);
+ ast_stopstream(chan);
return d;
}
@@ -894,7 +895,6 @@ static int play_and_record(struct ast_channel *chan, char *playfile, char *recor
d = ast_waitstream(chan,"");
if (d < 0)
return -1;
- ast_stopstream(chan);
}
fmts = ast_strdupa(fmt);