Hi Michael,<div><br></div><div>I disagree with your point about AMI over HTTP and how JSON/XML should be limited to this. There are so many drawbacks to using the AMI over HTTP that I (as a web developer) use the AMI over TCP because AMI over HTTP doesn't give me everything I need. Digium talked at AstriDevCon about making Asterisk's APIs more friendly to web developers - Steve Sokol talks about it on his blog <a href="http://www.stevensokol.com/2012/11/the-grand-unified-asterisk-api.html">http://www.stevensokol.com/2012/11/the-grand-unified-asterisk-api.html</a> - these are only thoughts right now though.</div>
<div><br></div><div>JSON and XML are not just used for WEB applications, they are data formats that follow a standard and that's why they are used so heavily; what's so wrong with Asterisk following another standard. Yes, JSON is easier to use within Javascript for example, but that's just because it's a standard.</div>
<div><br></div><div>But yes, +1 for Olle's suggestion for a summary AMI command/event.</div><div><br></div><div>Dan Jenkins</div>
<div class="gmail_extra"><br clear="all"><font face="arial, helvetica, sans-serif" color="#333333">-- <br>Dan Jenkins - Senior Web Developer<br>email: <a href="mailto:dan.jenkins@holidayextras.com" target="_blank">dan.jenkins@holidayextras.com</a><br>
twitter: <a href="http://twitter.com/dan_jenkins" target="_blank">dan_jenkins</a><br>linkedin: <a href="http://www.linkedin.com/in/jenkinsdaniel" target="_blank">jenkinsdaniel</a><br>skype: <a>d-jenkins</a></font><div><font face="arial, helvetica, sans-serif" color="#333333">blog: <a href="http://www.dan-jenkins.co.uk/" target="_blank">www.dan-jenkins.co.uk</a></font></div>
<div><font face="arial, helvetica, sans-serif" color="#333333"><a href="http://about.me" target="_blank">about.me</a>: <a href="http://about.me/dan_jenkins" target="_blank">about.me/dan_jenkins</a></font></div><br>
<br><br><div class="gmail_quote">On 9 November 2012 12:32, Michael L. Young <span dir="ltr"><<a href="mailto:myoung@acsacc.com" target="_blank">myoung@acsacc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">----- Original Message -----<br>
> From: "Saúl Ibarra Corretgé" <<a href="mailto:saghul@gmail.com">saghul@gmail.com</a>><br>
> To: "Asterisk Developers Mailing List" <<a href="mailto:asterisk-dev@lists.digium.com">asterisk-dev@lists.digium.com</a>><br>
> Sent: Friday, November 9, 2012 4:28:05 AM<br>
> Subject: Re: [asterisk-dev] Formatting options for CLI output<br>
><br>
</div><div class="im">> Hi,<br>
><br>
> +1 for Olle's suggestion. On to the format...<br>
><br>
> Nir Simionovich wrote:<br>
> > Ok, that’s a +1 by me as well. But, if we go that route, I think we<br>
> > should be able to format the output of that<br>
> > action. It would be very useful. Honestly, while on the subject,<br>
> > and I<br>
> > do admit that what I’m about to say will<br>
> > be totally out there – it would be really nice if the input to AMI<br>
> > can<br>
> > be a single JSON array, instead of doing the<br>
> > ever annoying \n\n in manager – no?<br>
> ><br>
><br>
> Why? You'll get text so you'll need to JSON-decode it anyway, so<br>
> what's<br>
> wrong about \n\n ?<br>
<br>
</div>It's because for a web developer, that is the easy route. Instead of them having to do any extra coding to parse the data, they can just feed it straight into their script.<br>
<br>
I do favor the addition of an AMI command to get just summary information about SIP peers. +1<br>
<br>
I am not for the command line turning into a "web service" for applications to get their data from. If there was any data to be presented in JSON/XML, it would need to be limited to AMI over http.<br>
<br>
Michael<br>
(elguero)<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></div></div></blockquote></div><br></div>