[Home]

Summary:ASTERISK-04132: [patch] Counter for show agents
Reporter:Clod Patry (junky)Labels:
Date Opened:2005-05-10 17:51:27Date Closed:2008-01-15 15:34:29.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_queue
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) agents_count_rev2.diff.txt
( 1) agents_count.diff.txt
Description:Right now, when doing:
debian*CLI> show agents
debian*CLI>

some people thinks the command was not executed cause there's no output. That patch is to be "more intuitive" for these people.

now looks like:
debian*CLI> show agents
No Agents are configured in agents.conf
debian*CLI>


Plus, added the number of agents configured in the config.

before:
debian*CLI> show agents
1001         (foo bar 1) not logged in (musiconhold is 'default')
1002         (foo bar 2) not logged in (musiconhold is 'default')
debian*CLI>

now:
debian*CLI> show agents
1001         (foo bar 1) not logged in (musiconhold is 'default')
1002         (foo bar 2) not logged in (musiconhold is 'default')
2 agents configured.
debian*CLI>



****** ADDITIONAL INFORMATION ******

Disclaimer on file.
Comments:By: twisted (twisted) 2005-05-10 22:48:16

If we're going to go this far, why not have it show total, offline, and online?

By: Clod Patry (junky) 2005-05-11 02:59:49

rev2 has that format:
debian*CLI> show agents
1001         (foo bar 1) available at '1001' (musiconhold is 'default')
1002         (foo bar 2) not logged in (musiconhold is 'default')
2 agents configured [1 online , 1 offline]
debian*CLI>



By: Kevin P. Fleming (kpfleming) 2005-05-14 22:42:58

Committed to CVS HEAD, thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:34:29.000-0600

Repository: asterisk
Revision: 5660

U   trunk/channels/chan_agent.c

------------------------------------------------------------------------
r5660 | kpfleming | 2008-01-15 15:34:28 -0600 (Tue, 15 Jan 2008) | 2 lines

add counters to 'show agents' CLI command (bug ASTERISK-4132)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=5660