summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2009-06-12 15:37:30 +0000
committerMark Michelson <mmichelson@digium.com>2009-06-12 15:37:30 +0000
commite1c03cbf1a699ce759337283e52e5e0e2ef9ac18 (patch)
tree4150e6da4fdbdf4c1e2b9b5a73756cb8df77c635 /apps
parentd222361a29a78a23f7e465c4a4271318fd61386d (diff)
Fix some bad locking stemming from trying to forward a call to a non-existent
extension from a queue. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@200326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 8fe2cdc98..9227423a4 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -3178,11 +3178,13 @@ static struct callattempt *wait_for_answer(struct queue_ent *qe, struct callatte
if (ast_call(o->chan, tmpchan, 0)) {
ast_log(LOG_NOTICE, "Failed to dial on local channel for call forward to '%s'\n", tmpchan);
+ ast_channel_unlock(o->chan);
do_hang(o);
numnochan++;
+ } else {
+ ast_channel_unlock(o->chan);
}
ast_channel_unlock(in);
- ast_channel_unlock(o->chan);
}
/* Hangup the original channel now, in case we needed it */
ast_hangup(winner);