Hi Magnus,

On Dec 9, 2009, at 1:04 PM, Magnus Burman wrote:

> I see this in the syslog every 5 seconds. It's not constant, so I'm guessing 
> it only occurs for a subset of the calls. When it does occur thou, it's once 
> every 5 seconds.
> 
> Could anyone shed some light on what is causing this?
> 
> Dec  9 12:44:51 sbc1 media-relay[4335]: Traceback (most recent call last):
> Dec  9 12:44:51 sbc1 media-relay[4335]:   File 
> "/usr/lib/python2.5/site-packages/twisted/python/log.py", line 69, in 
> callWithContext
> Dec  9 12:44:51 sbc1 media-relay[4335]:     return context.call({ILogContext: 
> newCtx}, func, *args, **kw)
> Dec  9 12:44:51 sbc1 media-relay[4335]:   File 
> "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 59, in 
> callWithContext
> Dec  9 12:44:51 sbc1 media-relay[4335]:     return 
> self.currentContext().callWithContext(ctx, func, *args, **kw)
> Dec  9 12:44:51 sbc1 media-relay[4335]:   File 
> "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 37, in 
> callWithContext
> Dec  9 12:44:51 sbc1 media-relay[4335]:     return func(*args,**kw)
> Dec  9 12:44:51 sbc1 media-relay[4335]:   File 
> "/usr/lib/python2.5/site-packages/twisted/internet/epollreactor.py", line 
> 231, in _doReadOrWrite
> Dec  9 12:44:51 sbc1 media-relay[4335]:     why = selectable.doRead()
> Dec  9 12:44:51 sbc1 media-relay[4335]: --- <exception caught here> ---
> Dec  9 12:44:51 sbc1 media-relay[4335]:   File 
> "/usr/lib/python2.5/site-packages/twisted/internet/udp.py", line 126, in 
> doRead
> Dec  9 12:44:51 sbc1 media-relay[4335]:     
> self.protocol.datagramReceived(data, addr)
> Dec  9 12:44:51 sbc1 media-relay[4335]:   File 
> "/usr/lib/pymodules/python2.5/mediaproxy/mediacontrol.py", line 127, in 
> datagramReceived
> Dec  9 12:44:51 sbc1 media-relay[4335]:     self.cb_func(host, port, data)
> Dec  9 12:44:51 sbc1 media-relay[4335]:   File 
> "/usr/lib/pymodules/python2.5/mediaproxy/mediacontrol.py", line 186, in 
> got_data
> Dec  9 12:44:51 sbc1 media-relay[4335]:     self.timer.cancel()
> Dec  9 12:44:51 sbc1 media-relay[4335]:   File 
> "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 95, in 
> cancel
> Dec  9 12:44:51 sbc1 media-relay[4335]:     raise error.AlreadyCalled
> Dec  9 12:44:51 sbc1 media-relay[4335]: twisted.internet.error.AlreadyCalled: 
> Tried to cancel an already-called event.

Can you please run MediaProxy relay in foreground and paste what you see when 
it starts failing? You can do that by executing media-relay --no-fork

Also, are you using latest MediaProxy release? I've found what could be causing 
that exception, please try the attached patch and let me know if it's working 
for you.

Attachment: mediacontrol_timer.patch
Description: Binary data



Best regards,

-- 
Saul Ibarra Corretge
AG Projects




_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to