Thank you for your replies.
The main point on this feature is that I need the counters to be updated whenever there is a lcr reload tables to detect a new peer.
I tried implementing something inside the KEX module since it already has something similar but I soon realized it's quite complicated to do what I want inside it because the counters are declared when the module starts
Changing KEX module leads to 2 problems:

  1. You have to make sure the user launches LCR module BEFORE KEX (otherwise the gw list is empty) in kamailio conf file.
  2. It is hard to change later, at runtime, the counters since they must be declared at start. If I call function register_module_stats() at runtime I get the following error:
 LM_BUG("late attempt to register counter: %s.%s\n", group, name);

maybe there is a way to get around this?
Additionally, the kex module requires to process some data coming from LCR, this is possible with some API implementation inside LCR module but... it's another complication.

I can try to submit a PL if you think this could be useful.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/3372/1429590663@github.com>