From: Mark Michelson Date: Tue, 29 Jan 2008 19:41:42 +0000 (+0000) Subject: Merged revisions 100973 via svnmerge from X-Git-Tag: 1.6.0-beta3~2^2~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=105e0f6cf8e094de50c619b5d67b73b4c373d642;p=thirdparty%2Fasterisk.git Merged revisions 100973 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r100973 | mmichelson | 2008-01-29 13:39:00 -0600 (Tue, 29 Jan 2008) | 6 lines Fixing an erroneous return value returned when attempting to pause or unpause a queue member fails. Fixes BE-366, thanks to John Bigelow for writing the patch. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100974 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 547132b6a8..53865daf7d 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4007,7 +4007,7 @@ static int pqm_exec(struct ast_channel *chan, void *data) if (set_member_paused(args.queuename, args.interface, args.reason, 1)) { ast_log(LOG_WARNING, "Attempt to pause interface %s, not found\n", args.interface); pbx_builtin_setvar_helper(chan, "PQMSTATUS", "NOTFOUND"); - return -1; + return 0; } pbx_builtin_setvar_helper(chan, "PQMSTATUS", "PAUSED"); @@ -4042,7 +4042,7 @@ static int upqm_exec(struct ast_channel *chan, void *data) if (set_member_paused(args.queuename, args.interface, args.reason, 0)) { ast_log(LOG_WARNING, "Attempt to unpause interface %s, not found\n", args.interface); pbx_builtin_setvar_helper(chan, "UPQMSTATUS", "NOTFOUND"); - return -1; + return 0; } pbx_builtin_setvar_helper(chan, "UPQMSTATUS", "UNPAUSED");