[Freeswitch-branches] [commit] r5128 - freeswitch/branches/greenlizard/src/mod/languages/mod_python

Freeswitch SVN greenlizard at freeswitch.org
Thu May 10 14:37:55 EDT 2007


Author: greenlizard
Date: Thu May 10 14:37:55 2007
New Revision: 5128

Modified:
   freeswitch/branches/greenlizard/src/mod/languages/mod_python/freeswitch_python.cpp

Log:
added Py_BEGIN_ALLOW_THREADS macro around switch_play_and_get_digits

Modified: freeswitch/branches/greenlizard/src/mod/languages/mod_python/freeswitch_python.cpp
==============================================================================
--- freeswitch/branches/greenlizard/src/mod/languages/mod_python/freeswitch_python.cpp	(original)
+++ freeswitch/branches/greenlizard/src/mod/languages/mod_python/freeswitch_python.cpp	Thu May 10 14:37:55 2007
@@ -161,10 +161,11 @@
     switch_status_t status;
 	sanity_check(-1);
 
+    Py_BEGIN_ALLOW_THREADS
     status = switch_play_and_get_digits( session, (uint32_t) min_digits,(uint32_t) max_digits,
             (uint32_t) max_tries, (uint32_t) timeout, 
             terminators, audio_files, bad_input_audio_files, dtmf_buf, 128, digits_regex);
-
+    Py_END_ALLOW_THREADS
 
     return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
 }



More information about the Freeswitch-branches mailing list