Query Call Data from freePBX through web API


(Ajg) #1

Is there any solid examples of using C# to simply query call data (for example the number of calls accepted by an agent in a given time frame)? I keep hoping that there is a simple http get that I can do get some simple report data, but it doesn’t look like that is the case. I’ve looked a little into AsterNet but can’t find any meaningful examples. Any help would be appreciated.


#2

C# wont help you here (unless you really understand C#, in whIch case you can do practically anything ), the data is in mysql which has its own query language for what was committed to the asteriskcdrdb , the asterisk AGI can query in real time what is happening now, the sqlite3 asteriskdb maintains some simplistic queue statistics. You will probably have to glean from all the above methods


(Communication Technologies) #3

https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Configuration_cdr


https://wiki.asterisk.org/wiki/display/AST/Asterisk+Internal+Database
https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=29395573
https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=4817239