summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-06-15 20:33:26 +0000
committerMark Spencer <markster@digium.com>2004-06-15 20:33:26 +0000
commitada1e768c46a689636de407e0692ea742894fd1f (patch)
tree8c6264755b1c38f646ce11c5a478aae09683f060 /apps
parent7255d8797c02d375c45904ee1fcb1a03e2081b55 (diff)
Fix unexpected behavior in voicemail (bug #1856)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3219 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_controlplayback.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_controlplayback.c b/apps/app_controlplayback.c
index 850ebed9c..2ec8de1b6 100755
--- a/apps/app_controlplayback.c
+++ b/apps/app_controlplayback.c
@@ -107,6 +107,11 @@ static int controlplayback_exec(struct ast_channel *chan, void *data)
res = ast_control_streamfile(chan, file, fwd, rev, stop, pause, skipms);
LOCAL_USER_REMOVE(u);
+
+ /* If we stopped on one of our stop keys, return 0 */
+ if(stop && strchr(stop, res))
+ res = 0;
+
return res;
}