From: Anthony Minessale Date: Thu, 16 Oct 2014 15:58:55 +0000 (-0500) Subject: FS-6849 #resolve #comment scripts need to have 'from freeswitch import *' at the... X-Git-Tag: v1.4.13~1^2~36^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cd0400d3891ea409f585fb980bb931cabc7bf94;p=thirdparty%2Ffreeswitch.git FS-6849 #resolve #comment scripts need to have 'from freeswitch import *' at the top. I added it explicitly to compensate. --- diff --git a/src/mod/languages/mod_python/mod_python.c b/src/mod/languages/mod_python/mod_python.c index af53ab2107..b27035ca98 100644 --- a/src/mod/languages/mod_python/mod_python.c +++ b/src/mod/languages/mod_python/mod_python.c @@ -250,6 +250,8 @@ static void eval_some_python(const char *funcname, char *args, switch_core_sessi goto done_swap_out; } + PyRun_SimpleString("from freeswitch import *"); + if (session) { sp = mod_python_conjure_session(module, session); }