Hi all, 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. Cheers Keith
It won't add a noticeable load to the box, but rather than forking a system command you could use the ESL protocol that fs_cli itself uses. There's a PHP module in libs/esl implementing client support. On 22 May 2014 10:02, Keith <keith@hubner.co.uk> wrote:
Hi all,
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.
Cheers Keith
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On 22 May 2014 12:30, Steven Ayre <steveayre@gmail.com> wrote:
It won't add a noticeable load to the box, but rather than forking a system command you could use the ESL protocol that fs_cli itself uses. There's a PHP module in libs/esl implementing client support.
I'd really like some object pascal/Delphi/Lazarus code that I could use to talk to ESL... Richard
Hi Keith, 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. This is a python snippet that gives me the list of channels as xml and parses them into a dict: from xmlrpclib import ServerProxy from xml.etree.cElementTree import XML server = ServerProxy('http://foo:bar@127.0.0.1:8080') response = server.freeswitch.api('show', 'channels as xml') channels = [] for row in XML(response): channels.append(dict([(e.tag, e.text) for e in row])) Best regards, Markus On Thu, May 22, 2014 at 11:02 AM, Keith <keith@hubner.co.uk> wrote:
Hi all,
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.
Cheers Keith
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Keith
-
Markus Lindenberg
-
Richard Mace
-
Steven Ayre