Module: kamailio
Branch: master
Commit: 7bea30203b85b7ed17434ee3f301faa0cedcba76
URL:
https://github.com/kamailio/kamailio/commit/7bea30203b85b7ed17434ee3f301faa…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-04T11:14:26+01:00
ims_qos: more extern declarations in the header files
---
Modified: src/modules/ims_qos/ims_qos_mod.c
Modified: src/modules/ims_qos/rx_aar.h
Modified: src/modules/ims_qos/stats.h
---
Diff:
https://github.com/kamailio/kamailio/commit/7bea30203b85b7ed17434ee3f301faa…
Patch:
https://github.com/kamailio/kamailio/commit/7bea30203b85b7ed17434ee3f301faa…
---
diff --git a/src/modules/ims_qos/ims_qos_mod.c b/src/modules/ims_qos/ims_qos_mod.c
index 27964f5b64..c2e2ae06a1 100644
--- a/src/modules/ims_qos/ims_qos_mod.c
+++ b/src/modules/ims_qos/ims_qos_mod.c
@@ -75,7 +75,11 @@
MODULE_VERSION
- extern gen_lock_t* process_lock; /* lock on the process table */
+extern gen_lock_t* process_lock; /* lock on the process table */
+
+stat_var* stat_aar_timeouts;
+stat_var* aar_replies_received;
+stat_var* aar_replies_response_time;
str orig_session_key = str_init("originating");
str term_session_key = str_init("terminating");
diff --git a/src/modules/ims_qos/rx_aar.h b/src/modules/ims_qos/rx_aar.h
index 0a9a63b51a..10fa2cc059 100644
--- a/src/modules/ims_qos/rx_aar.h
+++ b/src/modules/ims_qos/rx_aar.h
@@ -54,7 +54,7 @@
#include "../../core/mod_fix.h"
#include "../../core/locking.h"
-struct cdp_binds cdpb;
+extern struct cdp_binds cdpb;
extern cdp_avp_bind_t *cdp_avp;
/*this is the parcel to pass for CDP async for AAR*/
diff --git a/src/modules/ims_qos/stats.h b/src/modules/ims_qos/stats.h
index 2de4bcdfa3..86424b94a2 100644
--- a/src/modules/ims_qos/stats.h
+++ b/src/modules/ims_qos/stats.h
@@ -51,9 +51,9 @@
#include "../../core/counters.h"
-stat_var* stat_aar_timeouts;
-stat_var* aar_replies_received;
-stat_var* aar_replies_response_time;
+extern stat_var* stat_aar_timeouts;
+extern stat_var* aar_replies_received;
+extern stat_var* aar_replies_response_time;
int register_stats();
unsigned long get_avg_aar_response_time();