I am getting the intermittent errors below from Mediaproxy2.4.2 installed as per the instructions at http://www.smartvox.co.uk/serfaq_install_mediaproxy2.htm
I understand the global name 'all' is not defined error to be caused either by the wrong version of python or ctypes not being installed (which it is) The other confusing point is that this is intermittent, many successful calls are logged as expected to the 'sessions' table in JSON format (from which a CDR is then generated by a batch script - it was much easier when it just updated the radacct table directly!) but a large percentage are not. Any advice you can offer would be gratefully received. Regards, Ross -- begin extract from log -- sip02 media-dispatcher[11657]: error: No suitable relay found sip02 media-dispatcher[11657]: warning: Session 65c1c01f7f6b2fab2dbcc3f12a98e...@10.0.11.11 is no longer on relay aaa.bbb.ccc.ddd, statistics are probably lost sip02 media-dispatcher[11657]: session with call_id e6aa6349ffe6d...@mydomain.com from relay aaa.bbb.ccc.ddd did timeout sip02 media-dispatcher[11657]: Traceback (most recent call last): sip02 media-dispatcher[11657]: File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 51, in callWithLogger sip02 media-dispatcher[11657]: return callWithContext({"system": lp}, func, *args, **kw) sip02 media-dispatcher[11657]: File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 36, in callWithContext sip02 media-dispatcher[11657]: return context.call({ILogContext: newCtx}, func, *args, **kw) sip02 media-dispatcher[11657]: File "/usr/lib/python2.4/site-packages/twisted/python/context.py", line 59, in callWithContext sip02 media-dispatcher[11657]: return self.currentContext().callWithContext(ctx, func, *args, **kw) sip02 media-dispatcher[11657]: File "/usr/lib/python2.4/site-packages/twisted/python/context.py", line 37, in callWithContext sip02 media-dispatcher[11657]: return func(*args,**kw) sip02 media-dispatcher[11657]: --- <exception caught here> --- sip02 media-dispatcher[11657]: File "/usr/lib/python2.4/site-packages/twisted/internet/selectreactor.py", line 146, in _doReadOrWrite sip02 media-dispatcher[11657]: why = getattr(selectable, method)() sip02 media-dispatcher[11657]: File "/usr/lib/python2.4/site-packages/gnutls/interfaces/twisted/__init__.py", line 82, in doRead sip02 media-dispatcher[11657]: return tcp.Connection.doRead(self) sip02 media-dispatcher[11657]: File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py", line 362, in doRead sip02 media-dispatcher[11657]: return self.protocol.dataReceived(data) sip02 media-dispatcher[11657]: File "/usr/lib/python2.4/site-packages/twisted/protocols/basic.py", line 148, in dataReceived sip02 media-dispatcher[11657]: self.lineReceived(line) sip02 media-dispatcher[11657]: File "/usr/lib/python2.4/site-packages/mediaproxy/dispatcher.py", line 273, in lineReceived sip02 media-dispatcher[11657]: all_streams_ice = all(stream_info["status"] == "unselected ICE candidate" for stream_info in stats["streams"]) sip02 media-dispatcher[11657]: exceptions.NameError: global name 'all' is not defined sip02 media-dispatcher[11657]: error: Connection with relay at aaa.bbb.ccc.ddd was lost: global name 'all' is not defined sip02 media-dispatcher[11657]: warning: Session e6aa6349ffe6d...@mydomain.com is no longer on relay aaa.bbb.ccc.ddd, statistics are probably lost _______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users