<div dir="ltr">Hi Keith, <div><br></div><div>I use mod_xml_rpc for exaclty that use case. It's very fast and easy to use, no process spawning involved and no ESL client necessary. Perfect for request based clients. </div>
<div><br></div><div>This is a python snippet that gives me the list of channels as xml and parses them into a dict:</div><div><br></div><div>from xmlrpclib import ServerProxy<br></div><div>from xml.etree.cElementTree import XML<br>
</div><div>server = ServerProxy('<a href="http://foo:bar@127.0.0.1:8080">http://foo:bar@127.0.0.1:8080</a>')<br></div><div>response = server.freeswitch.api('show', 'channels as xml')</div><div>channels = []</div>
<div><div>for row in XML(response):</div><div> channels.append(dict([(e.tag, e.text) for e in row]))</div></div><div><br></div><div>Best regards, </div><div><br></div><div>Markus</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, May 22, 2014 at 11:02 AM, Keith <span dir="ltr"><<a href="mailto:keith@hubner.co.uk" target="_blank">keith@hubner.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi all,<div><br></div><div>I am looking to build a web page which will give me some live overview of call details, e,g, number of calls to a certain number etc. I am looking to use fs_cli -x to achieve this, was wondering if doing this adds much load to the box and could interfere with calls in any way. I use SNMP of other stats which I believe is less intrusive, but gives me less info.</div>
<div><br></div><div>Cheers</div><span class="HOEnZb"><font color="#888888"><div>Keith </div></font></span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>