[Freeswitch-users] ESL problem using WSGI with Django

Freddy Andersen freddy at cfandersen.com
Wed Jun 11 21:54:46 MSD 2014


I created a Django app that uses ESL to manage Freeswitch which works fine when I’m running the app using manage.py BUT when I move this app to our production environment using wsgi.py my connection hangs trying to connect to Freeswitch.

I narrowed down that its hung here:

class ESLconnection:
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ESLconnection, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ESLconnection, name)
    __repr__ = _swig_repr
    def __init__(self, *args):-
        print('before this')
        this = apply(_ESL.new_ESLconnection, args)
        print('after this')
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _ESL.delete_ESLconnection
    __del__ = lambda self : None;


I get 'before this' in my log but thats it… 

I found a few places where people needed to increase threads for Apaches WSGI process but that does not help… 

This is what I have:
WSGIDaemonProcess debug processes=4 threads=16 stack-size=1048576 maximum-requests=10 inactivity-timeout=30

The I get this in my debug logs:
[Wed Jun 11 10:44:26 2014] [error] before connection
[Wed Jun 11 10:44:26 2014] [error] before this
[Wed Jun 11 10:44:51 2014] [info] mod_wsgi (pid=14624): Daemon process inactivity timer expired, stopping process 'debug'.
[Wed Jun 11 10:44:51 2014] [info] mod_wsgi (pid=14624): Shutdown requested 'debug'.

anything would help at this point… 

-- Freddy 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140611/314dfd14/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list