View current calls by API and show in web app

Discussion in '3CX Phone System - General' started by Benjamin Fauchald, Jan 25, 2018.

Thread Status:
Not open for further replies.
  1. Benjamin Fauchald

    Joined:
    Jan 25, 2018
    Messages:
    6
    Likes Received:
    0
    We currently have a 3cx server from our vendor running on Linux and we want to show the number of busy agents.

    I've tried to read up on this but cannot find any REST documentation (apparently HTTP API was deprecated some time ago).

    I see the the call-control-api is only available to run on the actual server itself and our server is on Debian and with my limited .NET experience this seems very cumbersome and difficult to get going, especially since we dont even host the actual call server ourselves.
    (https://www.3cx.com/docs/call-control-api/)

    How can I expose the call que without using .net ported to run on debian?

    Can I maybe just take this data from the DB?
     
  2. voiptoys

    voiptoys Member

    Joined:
    Feb 13, 2013
    Messages:
    485
    Likes Received:
    80
    I assume you are looking for a wallboard application? A little more description of what you are trying to achieve would be helpful, but perhaps the real question is the "how" rather than the "why". The Call Control API for Debian is written in .Net Core (Microsoft's cross-platform development solution). To connect to the API, you must write your application in .Net core. Once you connect to the API, you can subscribe to events and then act accordingly on those events -- like update a web page using SignalR for example. We strongly advise that you DO NOT access the database directly. This is not supported, and could be viewed in a very negative light from the perspective of 3CX support. Regardless, 3CX doesn't always write to the database right away (it sometimes caches writes) so the database will not be real-time like the events broadcast by the Call Control API. We can help if you need assistance.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.