summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mordec <r.mordec@slican.pl>2017-03-14 15:27:56 +0100
committerKevin Harwell <kharwell@digium.com>2017-03-17 09:58:17 -0600
commit76afb9e18ad5bd253eb2dc0409b8033a9fbd1e79 (patch)
tree1f9f0e1cf6d7b30fb57b135756c8d83712b37e83
parent523de8eb8e0f7283b6c9210d5da0df541684e784 (diff)
app_queue: Member stuck as pending after forwarding previous call from queue
Queue member will get stuck in pending_members if queue calls a device that is different from the one observed for state changes. This patch removes members from pending_members as a result of channel stasis events such as blind or attended transfers and hangup. ASTERISK-26862 #close Change-Id: I8bf6df487b9bb35726c08049ff25cdad5e357727
-rw-r--r--apps/app_queue.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index f7cee6a76..4027527d4 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -5510,6 +5510,13 @@ static int update_queue(struct call_queue *q, struct member *member, int callcom
member->membername, (long)member->lastcall);
ao2_unlock(q);
}
+ /* Member might never experience any direct status change (local
+ * channel with forwarding in particular). If that's the case,
+ * this is the last chance to remove it from pending or subsequent
+ * calls will not occur.
+ */
+ pending_members_remove(member);
+
ao2_lock(q);
q->callscompleted++;
if (callcompletedinsl) {