mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Merged revisions 86754 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r86754 | file | 2007-10-22 13:15:18 -0300 (Mon, 22 Oct 2007) | 4 lines Make sure res is a positive value before performing the check to determine whether the user stopped it or not. (closes issue #11023) Reported by: cfc ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -142,7 +142,7 @@ static int controlplayback_exec(struct ast_channel *chan, void *data)
|
||||
res = ast_control_streamfile(chan, args.filename, args.fwd, args.rev, args.stop, args.pause, args.restart, skipms, &offsetms);
|
||||
|
||||
/* If we stopped on one of our stop keys, return 0 */
|
||||
if (args.stop && strchr(args.stop, res)) {
|
||||
if (res > 0 && args.stop && strchr(args.stop, res)) {
|
||||
res = 0;
|
||||
pbx_builtin_setvar_helper(chan, "CPLAYBACKSTATUS", "USERSTOPPED");
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user