Module: kamailio
Branch: 5.3
Commit: 5090a9661d72679358abe25db19e87602c9d2f2f
URL:
https://github.com/kamailio/kamailio/commit/5090a9661d72679358abe25db19e876…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-04T12:28:36+01:00
ims_auth: declare extern the stats variables in header file
(cherry picked from commit 8156dd87a977a011abb9652a997f4ba61eb3e642)
---
Modified: src/modules/ims_auth/ims_auth_mod.c
Modified: src/modules/ims_auth/stats.h
---
Diff:
https://github.com/kamailio/kamailio/commit/5090a9661d72679358abe25db19e876…
Patch:
https://github.com/kamailio/kamailio/commit/5090a9661d72679358abe25db19e876…
---
diff --git a/src/modules/ims_auth/ims_auth_mod.c b/src/modules/ims_auth/ims_auth_mod.c
index 20e148b089..3fd7ca923f 100644
--- a/src/modules/ims_auth/ims_auth_mod.c
+++ b/src/modules/ims_auth/ims_auth_mod.c
@@ -62,6 +62,10 @@
MODULE_VERSION
+stat_var* stat_mar_timeouts = NULL;
+stat_var* mar_replies_received = NULL;
+stat_var* mar_replies_response_time = NULL;
+
static void destroy(void);
static int mod_init(void);
diff --git a/src/modules/ims_auth/stats.h b/src/modules/ims_auth/stats.h
index 321feed279..98499c1b56 100644
--- a/src/modules/ims_auth/stats.h
+++ b/src/modules/ims_auth/stats.h
@@ -47,9 +47,9 @@
#include "../../core/counters.h"
#include "ims_auth_mod.h"
-stat_var* stat_mar_timeouts;
-stat_var* mar_replies_received;
-stat_var* mar_replies_response_time;
+extern stat_var* stat_mar_timeouts;
+extern stat_var* mar_replies_received;
+extern stat_var* mar_replies_response_time;
int register_stats();
unsigned long get_avg_mar_response_time();