[asterisk-dev] Formatting options for CLI output

Nir Simionovich nir.simionovich at gmail.com
Thu Nov 8 20:26:04 CST 2012


Ok, that's a +1 by me as well. But, if we go that route, I think we should
be able to format the output of that 
action. It would be very useful. Honestly, while on the subject, and I do
admit that what I'm about to say will 
be totally out there - it would be really nice if the input to AMI can be a
single JSON array, instead of doing the 
ever annoying  \n\n in manager - no?

 

I'd love to get cracking on this one as I need it - if someone can throw me
some pointers as to how the manager
actually works in that respect.

 

Nir S

 

From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Russell Bryant
Sent: Friday, November 09, 2012 3:11 AM
To: Asterisk Developers Mailing List
Subject: Re: [asterisk-dev] Formatting options for CLI output

 

On Thu, Nov 8, 2012 at 7:50 PM, Olle E. Johansson <oej at edvina.net> wrote:

 

9 nov 2012 kl. 01:33 skrev "Nir Simionovich" <nir.simionovich at gmail.com>:





Let's take the "sip show peers" CLI command. It's equivalent in the AMI
world will be the "sippeers" action.

Compare the output of the two, when all you require is the summary line - it
just doesn't make sense to use
AMI. Same applies to CoreShowChannels action.

 

So we can make a manager action that gives you the summary only... :-)

 

+1 ... :-)

 

-- 

Russell Bryant 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20121109/872b20eb/attachment.htm>


More information about the asterisk-dev mailing list