Hi,
Instead of using show calls count to obtain the current call count stat, I
am writing some C code to increment a counter during on_answer_hook and
decrement the counter during on_hangup_hook.
It looks like my counter result is very closed to show calls count when
the traffic is low, like 50
It depends on the timing of when your increment and decrement are vs when the
sql calls to push the events into the tables that are used for show calls are.
Also, the sql calls are batched and queued causing a little delay (less than a
second). If your doing a lot of short lived calls there