diff --git a/apps/app_queue.c b/apps/app_queue.c index eee4e55696694b6ced1207686f9879dc51187e86..6590f6bad1a8cd0d008d1c6417d7b48fe8bf0647 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1234,6 +1234,16 @@ static void clear_queue(struct call_queue *q) q->callsabandoned = 0; q->callscompletedinsl = 0; q->wrapuptime = 0; + q->talktime = 0; + + if (q->members) { + struct member *mem; + struct ao2_iterator mem_iter = ao2_iterator_init(q->members, 0); + while ((mem = ao2_iterator_next(&mem_iter))) { + mem->calls = 0; + ao2_ref(mem, -1); + } + } } /*!