[asterisk-users] sip show peers

Johansson Olle E oej at edvina.net
Fri May 2 15:12:02 CDT 2008


2 maj 2008 kl. 21.31 skrev Tilghman Lesher:

> On Friday 02 May 2008 12:35:48 Philipp Kempgen wrote:
>> Yeah, sometimes it would be helpful if asterisk -rx 'command' didn't
>> pretty print but instead fall back to an easily parseable output
>> format (like TSV with cslashes) if stdout isn't connected to a tty
>> (isatty()).
>
> The CLI is intended to be used by a human.  If you want machine  
> parseable
> output, I would suggest using AMI, as that's what it's meant for.

To clarify: We made a decision about this earlier this year and  
deprecated
all the CLI commands made for parsing ("concise"), to be able to focus  
on the CLI
for humans and AMI for applications.

Now, when you can reach AMI both over TCP and over HTTP/TCP and HTTP/TLS
we have many alternatives.

All CLI commands will somehow be adjusted for display on a terminal.

/O



More information about the asterisk-users mailing list