aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-14 16:01:32 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-14 16:01:32 +0000
commita10a6a2df4702b268d624ddb1173d11a3ba4149f (patch)
tree6c72f0dcaf64259cdbcd09e31547bc478fcaef48 /apps
parentdff5a6e8ee6f7ce6e3dd3582c259f43299e9eb9d (diff)
Fix music on hold on park
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1090 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_queue.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index ae475530b..9d451d101 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -718,9 +718,10 @@ static int queue_exec(struct ast_channel *chan, void *data)
}
}
/* Don't allow return code > 0 */
- if (res > 0 && res != AST_PBX_KEEPALIVE)
+ if (res > 0 && res != AST_PBX_KEEPALIVE) {
res = 0;
- ast_moh_stop(chan);
+ ast_moh_stop(chan);
+ }
leave_queue(&qe);
} else {
ast_log(LOG_WARNING, "Unable to join queue '%s'\n", queuename);