[FreeSWITCH]: Update patched files for musl

--
Signed-off-by: Mazi Lo <openwrt.mazilo@recursor.net>
This commit is contained in:
Mazi Lo
2016-03-26 18:20:35 -04:00
parent 1f256b0b9d
commit f780db1445
8 changed files with 183 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
--- a/src/mod/languages/mod_python/freeswitch_python.cpp
+++ b/src/mod/languages/mod_python/freeswitch_python.cpp
@@ -319,7 +319,12 @@ switch_status_t Session::run_dtmf_callba
}
if ((pyresult = PyEval_CallObject(cb_function, arglist))) {
+#if PY_MAJOR_VERSION < 3
str = (char *) PyString_AsString(pyresult);
+#else
+ //str = (char *) pyresult->encode('UTF-8');
+ str = (char *) PyUnicode_AsUnicode(pyresult);
+#endif
} else {
PyErr_Print();
}