Merge "app_queue: Member stuck as pending after forwarding previous call from queue"
This commit is contained in:
commit
30f011a460
1 changed files with 7 additions and 0 deletions
|
@ -5574,6 +5574,13 @@ static int update_queue(struct call_queue *q, struct member *member, int callcom
|
||||||
member->membername, (long)member->lastcall);
|
member->membername, (long)member->lastcall);
|
||||||
ao2_unlock(q);
|
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);
|
ao2_lock(q);
|
||||||
q->callscompleted++;
|
q->callscompleted++;
|
||||||
if (callcompletedinsl) {
|
if (callcompletedinsl) {
|
||||||
|
|
Loading…
Reference in a new issue