[Freeswitch-svn] [commit] r9001 - freeswitch/trunk/src/mod/languages/mod_python
Freeswitch SVN
greenlizard at freeswitch.org
Fri Jul 11 17:56:18 EDT 2008
Author: greenlizard
Date: Fri Jul 11 17:56:18 2008
New Revision: 9001
Removed:
freeswitch/trunk/src/mod/languages/mod_python/python.py
Modified:
freeswitch/trunk/src/mod/languages/mod_python/freeswitch_python.cpp
freeswitch/trunk/src/mod/languages/mod_python/freeswitch_python.h
Log:
remove old unused file, add a few documentation comments
Modified: freeswitch/trunk/src/mod/languages/mod_python/freeswitch_python.cpp
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_python/freeswitch_python.cpp (original)
+++ freeswitch/trunk/src/mod/languages/mod_python/freeswitch_python.cpp Fri Jul 11 17:56:18 2008
@@ -102,6 +102,12 @@
sanity_check(false);
r = switch_channel_ready(channel) != 0;
+
+ /*! this is called every time ready is called as a workaround to
+ make it threadsafe. it sets a flag, and all the places where it
+ comes in and out of threadswap, check it. so the end result is
+ you still get the hangup hook executed pretty soon after you
+ hangup. */
do_hangup_hook();
return r;
Modified: freeswitch/trunk/src/mod/languages/mod_python/freeswitch_python.h
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_python/freeswitch_python.h (original)
+++ freeswitch/trunk/src/mod/languages/mod_python/freeswitch_python.h Fri Jul 11 17:56:18 2008
@@ -38,8 +38,12 @@
PyObject *hangup_func;
PyObject *hangup_func_arg;
+ /* keep a pointer to parent module, internal use only*/
void setPython(PyObject *state);
+
+ /* keeps the PyObject * version of the Session so it can be used as args to the callback */
void setSelf(PyObject *state);
+
};
}
#endif
More information about the Freeswitch-svn
mailing list