It’s not a GUI – The CGrateS Web UI

Working a lot with CGrateS I found myself doing the same tasks somewhat regularly, one common task was being asked to get CDRs for a certain thing on an ad-hoc basis, ie “Can you get the call records for XXXX for last month?” or “How much did we spend on calls to YY this quarter?” or “How many GB of data did roamers use on these 3 cell cites this week?”

As those were all CDR related queries, I knocked up a quick React Web UI to search CDRs.

Then we introduced accounts with balances, and there were queries about checking balances, adding roaming packs, etc.

And then things just kinda spiraled…

Managing Actions and Action Plans, rates, simulating cost, Attributes, SessionS, etc, etc.

This isn’t meant as a GUI – If you don’t know how CGrateS works, this tool won’t help you.

But if you’re already working with CGrateS and sending random HTTP POSTs of JSON blobs from your language of choice, this a toolbox to manipulate data will hopefully be useful to you.

I think of it as kinda like Postman but a bit simpler and just focused on CGrateS.

At the time of writing it can view/manage:
Searching and exporting CDRs

  • Viewing Accounts & Account Balances (And Executing Actions / Viewing ActionPlans)
  • Viewing / Terminating SessionS
  • Managing Resources & monitoring usage of them
  • Managing ActionPlans
  • Managing Actions
  • Managing ChargerS
  • Viewing Routes / Least Cost Routes
  • Managing AttributeS
  • Managing FilterS
  • Viewing DestinationRates & Destinations / Rates
  • Managing RatingPlans & RatingProfiles
  • Managing Timings & testing timing rules
  • Managing TariffPlans
  • Simulating Costs
  • Viewing Config
  • Send random JSON bodies and view the responses

And any time I need to interact with a new subsystem I generally add it in the tool as well.

I’ve posted this on Github Pages for anyone who wants to give it a try for themselves.

Leave a Reply

Your email address will not be published. Required fields are marked *