[asterisk-users] What's up with the Manager Interface?!?!

Douglas Garstang dgarstang at oneeighty.com
Wed Nov 29 16:06:30 MST 2006


> -----Original Message-----
> From: James Texter [mailto:james.texter at cox.net]
> Sent: Wednesday, November 29, 2006 3:03 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] What's up with the Manager Interface?!?!
> 
> 
> Doug,
>     Your issue isn't with the manager.  It's with the CLI 
> output you are
> trying to hijack via manager :D  If you run "sip show peer 
> 2944093" in the
> CLI, you'll see a blank line, followed by a line that is "* Name".  It
> appears what you really want is a manager Action to show a 
> sip peer, in
> which case I would recommend adding a new manager command 
> that returns a
> string which is much more machine readable.  Remember, CLI output is
> designed to be human readable.
> 
> Just my $0.02.

James, even the Action: commands are inconsistent.
Arrgh!!!

The 'sippeers' action completes with:

Event: PeerlistComplete
ListItems: 79

while the 'queues' action completes with NOTHING. Nothing is printed that indicates it's output has completed.
These are _both_ action commands and yet they yield inconsistent results!

Action: queues

180o_QCCare  has 0 calls (max unlimited) in 'rrmemory' strategy (27s holdtime), W:0, C:39, A:8, SL:0.0% within 0s
   Members: 
      Agent/80014053 (Unavailable) has taken no calls yet
      Agent/80014009 (Unavailable) has taken no calls yet
      Agent/80014054 (Unavailable) has taken no calls yet
      Agent/80014050 (paused) (Unavailable) has taken 1 calls (last was 99158 secs ago)
      Agent/80014033 (Unavailable) has taken no calls yet
      Agent/80014051 (Not in use) has taken 17 calls (last was 5842 secs ago)
      Agent/80014052 (Unavailable) has taken no calls yet
      Agent/80014057 (Busy) has taken 20 calls (last was 769 secs ago)
      Agent/80014055 (paused) (Not in use) has taken 1 calls (last was 100494 secs ago)
   No Callers

180o_QTech   has 0 calls (max unlimited) in 'rrmemory' strategy (11s holdtime), W:0, C:106, A:23, SL:0.0% within 0s
   Members: 
      Agent/80014153 (Unavailable) has taken no calls yet
      Agent/80014154 (Unavailable) has taken no calls yet
      Agent/80014109 (Unavailable) has taken 17 calls (last was 87502 secs ago)
      Agent/80014150 (Unavailable) has taken no calls yet
      Agent/80014133 (Not in use) has taken 54 calls (last was 172 secs ago)
      Agent/80014151 (Unavailable) has taken no calls yet
      Agent/80014152 (paused) (Not in use) has taken 35 calls (last was 6479 secs ago)
      Agent/80014157 (Unavailable) has taken no calls yet
      Agent/80014155 (Unavailable) has taken no calls yet
   No Callers

See! There's no Event that indicates the output has finished!



More information about the asterisk-users mailing list