Module: kamailio
Branch: 5.3
Commit: 2c2af66acca5bbe49840683682323745a9f84b1f
URL:
https://github.com/kamailio/kamailio/commit/2c2af66acca5bbe4984068368232374…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-04T12:28:55+01:00
ims_icscf: stats global variables made extern in header file
(cherry picked from commit bfb717fc8504a079066a0fdc09b856a937a7b430)
---
Modified: src/modules/ims_icscf/ims_icscf_mod.c
Modified: src/modules/ims_icscf/stats.h
---
Diff:
https://github.com/kamailio/kamailio/commit/2c2af66acca5bbe4984068368232374…
Patch:
https://github.com/kamailio/kamailio/commit/2c2af66acca5bbe4984068368232374…
---
diff --git a/src/modules/ims_icscf/ims_icscf_mod.c
b/src/modules/ims_icscf/ims_icscf_mod.c
index 3aa9814c5b..1bc7b7e430 100644
--- a/src/modules/ims_icscf/ims_icscf_mod.c
+++ b/src/modules/ims_icscf/ims_icscf_mod.c
@@ -63,6 +63,13 @@ cdp_avp_bind_t *cdp_avp;
sl_api_t slb;
+stat_var* stat_uar_timeouts = NULL;
+stat_var* stat_lir_timeouts = NULL;
+stat_var* uar_replies_received = NULL;
+stat_var* lir_replies_received = NULL;
+stat_var* uar_replies_response_time = NULL;
+stat_var* lir_replies_response_time = NULL;
+
//module parameters
char* ims_icscf_db_url="mysql://icscf:heslo@localhost/hssdata"; /**< DB
URL */
char* ims_icscf_db_nds_table="nds_trusted_domains";
/**< NDS table in DB */
diff --git a/src/modules/ims_icscf/stats.h b/src/modules/ims_icscf/stats.h
index eb293f80be..dbe1dcd5d2 100644
--- a/src/modules/ims_icscf/stats.h
+++ b/src/modules/ims_icscf/stats.h
@@ -46,12 +46,12 @@
#include "../../core/counters.h"
-stat_var* stat_uar_timeouts;
-stat_var* stat_lir_timeouts;
-stat_var* uar_replies_received;
-stat_var* lir_replies_received;
-stat_var* uar_replies_response_time;
-stat_var* lir_replies_response_time;
+extern stat_var* stat_uar_timeouts;
+extern stat_var* stat_lir_timeouts;
+extern stat_var* uar_replies_received;
+extern stat_var* lir_replies_received;
+extern stat_var* uar_replies_response_time;
+extern stat_var* lir_replies_response_time;
int register_stats();
unsigned long get_avg_uar_response_time();