Can not use Python ESL with Django and apache web server
I tried freeswitch python ESL library with Django and apache mod_wsgi today. I already compiled and installed pymod in Freeswitch source folder. My freeswitch server runs as root and my DJnago web server runs as www-data and mod_wsgi. When used command "ESLconnection("localhost", "8021", "ClueCon")" in my views.py to connect to freeswitch server, django froze permanently and it said waiting for the request... -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Can-not-use-Python-ESL-with-Dj... Sent from the freeswitch-users mailing list archive at Nabble.com.
Last time I had a similar problem I had to increase the number of wsgi worker processes. Use the processes=n option to the WSGIDaemonProcess directive. On 21 November 2012 08:38, chaiyawut.so <chaiyawut.so@gmail.com> wrote:
I tried freeswitch python ESL library with Django and apache mod_wsgi today. I already compiled and installed pymod in Freeswitch source folder. My freeswitch server runs as root and my DJnago web server runs as www-data and mod_wsgi. When used command "ESLconnection("localhost", "8021", "ClueCon")" in my views.py to connect to freeswitch server, django froze permanently and it said waiting for the request...
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Can-not-use-Python-ESL-with-Dj... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
That solved the problem, thank you -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Can-not-use-Python-ESL-with-Dj... Sent from the freeswitch-users mailing list archive at Nabble.com.
I'm having the same issue when connecting to the ESL from Django through Apache WSGI. I increased the number of processes with the processes=n option in the WSGIDaemonProcess directive and it first seems to work but then I realized that it works only sometimes and I also notice it slows down all the web server. When ESLconnection is called, the Apache process/thread freezes and doesn't respond anything to the request so I couldn't obtained any debug trace of what is really happening. Using the Django built-in server all works OK so it seems a problem between WSGI and Freeswitch Python ESL. Any help would be really appreciated! 2012/11/24 chaiyawut.so <chaiyawut.so@gmail.com>
That solved the problem, thank you
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Can-not-use-Python-ESL-with-Dj... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Andrew Cassidy
-
Andrés Souto Vidal
-
chaiyawut.so