Module: kamailio
Branch: 5.3
Commit: 70f07adf5778fdb7015bfce8ffd1b8ae0353d432
URL:
https://github.com/kamailio/kamailio/commit/70f07adf5778fdb7015bfce8ffd1b8a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-04T12:29:43+01:00
ims_qos: more extern declarations in the header files
(cherry picked from commit 7bea30203b85b7ed17434ee3f301faa0cedcba76)
---
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/70f07adf5778fdb7015bfce8ffd1b8a…
Patch:
https://github.com/kamailio/kamailio/commit/70f07adf5778fdb7015bfce8ffd1b8a…
---
diff --git a/src/modules/ims_qos/ims_qos_mod.c b/src/modules/ims_qos/ims_qos_mod.c
index 6f68b39be1..7e0d50b2df 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();