Module: kamailio
Branch: 5.3
Commit: 48a630a11b954fe8da5edac7f3cf5b582407416b
URL:
https://github.com/kamailio/kamailio/commit/48a630a11b954fe8da5edac7f3cf5b5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-09T09:21:11+01:00
app_python3: declare global vars extern in header file
(cherry picked from commit a771d9abd9ce97228efa7a0dfc9c4d89690e9b38)
---
Modified: src/modules/app_python3/app_python3_mod.c
Modified: src/modules/app_python3/python_support.h
---
Diff:
https://github.com/kamailio/kamailio/commit/48a630a11b954fe8da5edac7f3cf5b5…
Patch:
https://github.com/kamailio/kamailio/commit/48a630a11b954fe8da5edac7f3cf5b5…
---
diff --git a/src/modules/app_python3/app_python3_mod.c
b/src/modules/app_python3/app_python3_mod.c
index 92ce10e04f..502a6d540b 100644
--- a/src/modules/app_python3/app_python3_mod.c
+++ b/src/modules/app_python3/app_python3_mod.c
@@ -53,6 +53,7 @@ static int child_init(int rank);
static void mod_destroy(void);
PyObject *_sr_apy_handler_obj = NULL;
+PyObject *format_exc_obj = NULL;
char *dname = NULL, *bname = NULL;
diff --git a/src/modules/app_python3/python_support.h
b/src/modules/app_python3/python_support.h
index 97c4e72e3e..8859f9a32a 100644
--- a/src/modules/app_python3/python_support.h
+++ b/src/modules/app_python3/python_support.h
@@ -25,7 +25,7 @@
#include <Python.h>
#include <stdarg.h>
-PyObject *format_exc_obj;
+extern PyObject *format_exc_obj;
void python_handle_exception(const char *, ...);