Module: kamailio
Branch: 5.3
Commit: dd259e28f4f820c9f4e641326b271eb8241f853c
URL:
https://github.com/kamailio/kamailio/commit/dd259e28f4f820c9f4e641326b271eb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-22T09:43:46+01:00
corex: declare nio specific globals in c file
(cherry picked from commit 512f89bec0b6ebd2b3c7c16b115f15dbd6de9a39)
---
Modified: src/modules/corex/corex_nio.c
Modified: src/modules/corex/corex_nio.h
---
Diff:
https://github.com/kamailio/kamailio/commit/dd259e28f4f820c9f4e641326b271eb…
Patch:
https://github.com/kamailio/kamailio/commit/dd259e28f4f820c9f4e641326b271eb…
---
diff --git a/src/modules/corex/corex_nio.c b/src/modules/corex/corex_nio.c
index 6b79fcc648..2e5cdff449 100644
--- a/src/modules/corex/corex_nio.c
+++ b/src/modules/corex/corex_nio.c
@@ -18,6 +18,14 @@
#include "corex_nio.h"
+int nio_route_no;
+int nio_min_msg_len;
+int nio_is_incoming;
+
+str nio_msg_avp_param;
+int_str nio_msg_avp_name;
+unsigned short nio_msg_avp_type;
+
/**
* init nio function
*/
diff --git a/src/modules/corex/corex_nio.h b/src/modules/corex/corex_nio.h
index ec0bbc5ae9..008fcdd7de 100644
--- a/src/modules/corex/corex_nio.h
+++ b/src/modules/corex/corex_nio.h
@@ -32,13 +32,13 @@
#include "../../core/tcp_options.h"
#include "../../core/msg_translator.h"
-int nio_route_no;
-int nio_min_msg_len;
-int nio_is_incoming;
+extern int nio_route_no;
+extern int nio_min_msg_len;
+extern int nio_is_incoming;
-str nio_msg_avp_param;
-int_str nio_msg_avp_name;
-unsigned short nio_msg_avp_type;
+extern str nio_msg_avp_param;
+extern int_str nio_msg_avp_name;
+extern unsigned short nio_msg_avp_type;
int nio_msg_received(sr_event_param_t *evp);
int nio_msg_sent(sr_event_param_t *evp);