[OpenSIPS-Users] Mediaproxy python errors (AlreadyCalled)
Saul Ibarra Corretge
saul at ag-projects.com
Thu Dec 10 09:50:07 CET 2009
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mediacontrol_timer.patch
Type: application/octet-stream
Size: 510 bytes
Desc: not available
Url : http://lists.opensips.org/pipermail/users/attachments/20091210/7542dcc2/attachment.obj
-------------- next part --------------
Best regards,
--
Saul Ibarra Corretge
AG Projects
More information about the Users
mailing list