Summary:ASTERISK-06910: [patch] Allow the CLI to list all online agents.
Reporter:Clod Patry (junky)Labels:
Date Opened:2006-05-06 22:55:47Date Closed:2006-05-08 06:08:56
Versions:Frequency of
Environment:Attachments:( 0) show_agents_online_2.txt
Description:In a scenario like:
polux*CLI> show agents
101          (Emilie) not logged in (musiconhold is 'default')
102          (Julie) not logged in (musiconhold is 'default')
103          (Isabelle) available at '15' (musiconhold is 'default')
104          (Karine) not logged in (musiconhold is 'default')
105          (Wendy) not logged in (musiconhold is 'default')
106          (Marie) not logged in (musiconhold is 'default')
107          (Suzie) not logged in (musiconhold is 'default')
108          (Elizabeth) not logged in (musiconhold is 'default')
109          (Eliza) available at '15' (musiconhold is 'default')
110          (Nathalie) not logged in (musiconhold is 'default')
111          (Melanie) not logged in (musiconhold is 'default')
112          (Michel) not logged in (musiconhold is 'default')
113          (Marie-EVe) not logged in (musiconhold is 'default')
114          (Josh) not logged in (musiconhold is 'default')
115          (Mark) not logged in (musiconhold is 'default')
116          (Catherine) not logged in (musiconhold is 'default')
17          (Emilie B.) not logged in (musiconhold is 'default')
118          (Julia) not logged in (musiconhold is 'default')
119          (Maria) not logged in (musiconhold is 'default')
19 agents configured [2 online , 17 offline]

That could be really hard to see which agents are online, in this list.

So this patch allow you to:

polux*CLI> show agents online
103          (Isabelle) available at '15' (musiconhold is 'default')
109          (Eliza) available at '15' (musiconhold is 'default')
2 agents online

That will list just all online agents.


I did not create a show agents offline, cause knowing that status is not really important, versus, which agents are currently taking calls.

I wrote a new function, instead of just adding filters to agents_show, cause i think the tab completion is pretty cool when typing show age <tab> <tab>.
Comments:By: Serge Vecher (serge-v) 2006-05-07 03:16:34

wow, junky, all those agents work for you?

By: BJ Weschke (bweschke) 2006-05-07 08:11:31

junky: very cool functionality, but you need to ast_cli_unregister your call in unload_module.

By: Clod Patry (junky) 2006-05-07 12:11:00

vechers: for the company.
(and congratulations for becoming a bug marshals).

BJ: now the ast_cli_unregister is in new version.

By: Matt O'Gorman (mogorman) 2006-05-08 06:08:55

Committed revision 25441.