Module: kamailio
Branch: 5.3
Commit: fe8f6887f4fa94f72c04d09f6e199218e0b6a90d
URL:
https://github.com/kamailio/kamailio/commit/fe8f6887f4fa94f72c04d09f6e19921…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-09T09:19:17+01:00
ims_diameter_server: extern declaration of global vars in header file
(cherry picked from commit 19263243127c40d0418ff04e56048d31e9dd9d0c)
---
Modified: src/modules/ims_diameter_server/ims_diameter_server.c
Modified: src/modules/ims_diameter_server/ims_diameter_server.h
---
Diff:
https://github.com/kamailio/kamailio/commit/fe8f6887f4fa94f72c04d09f6e19921…
Patch:
https://github.com/kamailio/kamailio/commit/fe8f6887f4fa94f72c04d09f6e19921…
---
diff --git a/src/modules/ims_diameter_server/ims_diameter_server.c
b/src/modules/ims_diameter_server/ims_diameter_server.c
index f3e6fe040e..c7fe941b00 100644
--- a/src/modules/ims_diameter_server/ims_diameter_server.c
+++ b/src/modules/ims_diameter_server/ims_diameter_server.c
@@ -31,6 +31,13 @@ MODULE_VERSION
extern gen_lock_t* process_lock; /* lock on the process table */
+struct cdp_binds cdpb;
+cdp_avp_bind_t *cdp_avp;
+
+AAAMessage *request;
+str responsejson;
+str requestjson;
+
struct cdp_binds cdpb;
cdp_avp_bind_t *cdp_avp;
diff --git a/src/modules/ims_diameter_server/ims_diameter_server.h
b/src/modules/ims_diameter_server/ims_diameter_server.h
index 26848d5ebb..76775bd00c 100644
--- a/src/modules/ims_diameter_server/ims_diameter_server.h
+++ b/src/modules/ims_diameter_server/ims_diameter_server.h
@@ -26,14 +26,14 @@
/** callback functions */
-struct cdp_binds cdpb;
-cdp_avp_bind_t *cdp_avp;
+extern struct cdp_binds cdpb;
+extern cdp_avp_bind_t *cdp_avp;
struct AAAMessage;
-AAAMessage *request;
-str responsejson;
-str requestjson;
+extern AAAMessage *request;
+extern str responsejson;
+extern str requestjson;
AAAMessage* callback_cdp_request(AAAMessage *request, void *param);