Module: kamailio
Branch: master
Commit: 19263243127c40d0418ff04e56048d31e9dd9d0c
URL:
https://github.com/kamailio/kamailio/commit/19263243127c40d0418ff04e56048d3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-06T16:28:51+01:00
ims_diameter_server: extern declaration of global vars in header file
---
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/19263243127c40d0418ff04e56048d3…
Patch:
https://github.com/kamailio/kamailio/commit/19263243127c40d0418ff04e56048d3…
---
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);