MODLANG-105
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12658 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
beea024a53
commit
e941f7f4a4
|
@ -4,13 +4,13 @@
|
||||||
<!--<param name="xml-handler-bindings" value="dialplan"/>-->
|
<!--<param name="xml-handler-bindings" value="dialplan"/>-->
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
The following options identifies a py script that is launched
|
The following options identifies a py module that is launched
|
||||||
at startup and may live forever in the background.
|
at startup and may live forever in the background.
|
||||||
You can define multiple lines, one for each script you
|
You can define multiple lines, one for each script you
|
||||||
need to run.
|
need to run.
|
||||||
-->
|
-->
|
||||||
<!--<param name="startup-script" value="startup_script_1.py"/>-->
|
<!--<param name="startup-script" value="startup_script_1"/>-->
|
||||||
<!--<param name="startup-script" value="startup_script_2.py"/>-->
|
<!--<param name="startup-script" value="startup_script_2"/>-->
|
||||||
|
|
||||||
</settings>
|
</settings>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -388,6 +388,8 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_python_load)
|
||||||
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Python Framework Loading...\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Python Framework Loading...\n");
|
||||||
|
|
||||||
|
globals.pool = pool;
|
||||||
|
|
||||||
if (!Py_IsInitialized()) {
|
if (!Py_IsInitialized()) {
|
||||||
|
|
||||||
// initialize python system
|
// initialize python system
|
||||||
|
@ -408,7 +410,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_python_load)
|
||||||
PyEval_ReleaseLock();
|
PyEval_ReleaseLock();
|
||||||
}
|
}
|
||||||
|
|
||||||
globals.pool = pool;
|
|
||||||
do_config();
|
do_config();
|
||||||
|
|
||||||
/* connect my internal structure to the blank pointer passed to me */
|
/* connect my internal structure to the blank pointer passed to me */
|
||||||
|
|
Loading…
Reference in New Issue