Summary:ASTERISK-02595: usage count isn't decremented when agent/queue call completed
Reporter:drmac (drmac)Labels:
Date Opened:2004-10-13 17:17:58Date Closed:2011-06-07 14:10:50
Versions:Frequency of
Description:We have 6 agents and 1 queue. I restart asterisk at 7:55. Call center opens at 8. Usage count for chan_agents and chan_local is both 0.

Throughout the day agents login and logout and log back in and log back out.

At the end of the day, after all the agents have logged out, the usage count (today) was 39 for both chan_agent and chan_local.

The significance of this could be trival. It only prevents me from unloading the module to make an upgrade. But I'm guessing that it could have other significance if left unchecked. (ie: number increments out of mem space)


I will take a look at this tomorrow and possibly have a patch at end of week. Just wanted this on bugs list to see if others had fix.
Comments:By: Mark Spencer (markster) 2004-10-14 01:24:03

There's no incrementing out of mem space or anything like that.  Which module is it that reports the high use count?

By: drmac (drmac) 2004-10-14 08:31:00

Just found something new. The usage count for chan_agent AND chan_local are NOT incremented/decremented when an agent logs in/logs out.

I just tested, and the usage counts for both chans get incremented when a call is placed in a queue. Thats interesting.

To test again, I restarted asterisk to reset usage counts to 0.

I logged in my agent, and 3 other agents. 'show modules' showed usage counts of chan_agent and chan_local as 0.

All 4 agents logged out. Still usage 0. All 4 logged back in. Still 0.

Made a call. Was placed in queue. Usage count increased to 1.

Hung up. Repeated. Usage count now 2 for both chans.

(shame I can't change the bug topic.)

By: twisted (twisted) 2004-10-27 17:15:52

Is this still an issue?  What would you like the subject changed to?

By: drmac (drmac) 2004-10-28 09:02:28

it should be "usage count isn't decremented when agent/queue call completed".

When a call comes into a queue, the usage counts for both chan_agent and chan_local are incremented. But when the call is completed, the usage counts are NOT reduced.

By: twisted (twisted) 2004-11-14 21:31:34.000-0600

Mkay, I changed the subject line, now i'm going to have to ask for updates/progress/etc.   Is this even still a bug in current cvs?


By: twisted (twisted) 2004-12-01 00:42:15.000-0600

Either not a bug any longer, or reporter lost interest.  Feel free to re-open if closed in error.