[OpenSIPS-Users] Mediaproxy relay exception for video call

Ruud Klaver ruud at ag-projects.com
Tue May 5 12:28:50 CEST 2009


Hi Carlo,

On 05 May 2009, at 11:25, Carlo Dimaggio wrote:

> Hi all,
>
> I have an exception in media-relay when I try to perform a video call
> (h.263/264 or 261). A voice call works fine.
> The two endpoints are Ekiga 3.0 and Xmeeting 0.3.4a (or Xlite 3) while
> the other versions are: opensips 1.5.1, media dispatcher and relay
> 2.3.4.
>
> Is this problem related to mediaproxy 2.3.4?
>
>
> Thanks and regards,
> Carlo Dimaggio
>
>
>
> --- Log Media-dispatcher
>
> May  5 10:38:07 sip media-dispatcher[4623]: debug: Issuing "update"
> command to relay at <IP_MEDIA>
> May  5 10:38:07 sip media-dispatcher[4623]: warning: Relay at
> <IP_MEDIA> returned error: Received error from relay at <IP_MEDIA> in
> response to "update" command
> May  5 10:38:07 sip media-dispatcher[4623]: error: Error processing
> request: No suitable relay found
>
>
> --- Log Media-relay
>
> May  5 10:38:07 media media-relay[14342]: Traceback (most recent call
> last):
> May  5 10:38:07 media media-relay[14342]:   File "/usr/lib/python2.5/
> site-packages/twisted/internet/epollreactor.py", line 197, in
> _doReadOrWrite
> May  5 10:38:07 media media-relay[14342]:     why =  
> selectable.doRead()
> May  5 10:38:07 media media-relay[14342]:   File "/var/lib/python-
> support/python2.5/gnutls/interfaces/twisted/__init__.py", line 82, in
> doRead
> May  5 10:38:07 media media-relay[14342]:     return
> tcp.Connection.doRead(self)
> May  5 10:38:07 media media-relay[14342]:   File "/usr/lib/python2.5/
> site-packages/twisted/internet/tcp.py", line 362, in doRead
> May  5 10:38:07 media media-relay[14342]:     return
> self.protocol.dataReceived(data)
> May  5 10:38:07 media media-relay[14342]:   File "/usr/lib/python2.5/
> site-packages/twisted/protocols/basic.py", line 149, in dataReceived
> May  5 10:38:07 media media-relay[14342]:     self.lineReceived(line)
> May  5 10:38:07 media media-relay[14342]: --- <exception caught here>
> ---
> May  5 10:38:07 media media-relay[14342]:   File "/usr/lib/python2.5/
> site-packages/mediaproxy/relay.py", line 180, in lineReceived
> May  5 10:38:07 media media-relay[14342]:     response =
> self.factory.parent.got_command(self.factory.host, self.command,
> self.headers)
> May  5 10:38:07 media media-relay[14342]:   File "/usr/lib/python2.5/
> site-packages/mediaproxy/relay.py", line 391, in got_command
> May  5 10:38:07 media media-relay[14342]:     local_media =
> self.session_manager.update_session(dispatcher, **headers)
> May  5 10:38:07 media media-relay[14342]:   File "/usr/lib/python2.5/
> site-packages/mediaproxy/mediacontrol.py", line 673, in update_session
> May  5 10:38:07 media media-relay[14342]:     session = Session(self,
> dispatcher, call_id, from_tag, from_uri, to_tag, to_uri, cseq,
> user_agent, media, is_downstream, is_caller_cseq)
> May  5 10:38:07 media media-relay[14342]:   File "/usr/lib/python2.5/
> site-packages/mediaproxy/mediacontrol.py", line 422, in __init__
> May  5 10:38:07 media media-relay[14342]:     self.update_media(cseq,
> to_tag, user_agent, media_list, is_downstream, is_caller_cseq)
> May  5 10:38:07 media media-relay[14342]:   File "/usr/lib/python2.5/
> site-packages/mediaproxy/mediacontrol.py", line 463, in update_media
> May  5 10:38:07 media media-relay[14342]:     stream =
> MediaStream(self, media_type, media_ip, media_port, party,
> media_direction)
> May  5 10:38:07 media media-relay[14342]:   File "/usr/lib/python2.5/
> site-packages/mediaproxy/mediacontrol.py", line 317, in __init__
> May  5 10:38:07 media media-relay[14342]:     self.caller =
> MediaParty(self)
> May  5 10:38:07 media media-relay[14342]:   File "/usr/lib/python2.5/
> site-packages/mediaproxy/mediacontrol.py", line 285, in __init__
> May  5 10:38:07 media media-relay[14342]:     self.ports = port_rtp,
> port_rtcp = self.manager.get_ports()
> May  5 10:38:07 media media-relay[14342]:   File "/usr/lib/python2.5/
> site-packages/mediaproxy/mediacontrol.py", line 640, in get_ports
> May  5 10:38:07 media media-relay[14342]:     return
> self.ports.popleft()
> May  5 10:38:07 media media-relay[14342]: exceptions.IndexError: pop
> from an empty deque

This seems to be exactly the same exception you posted before. It  
means no relaying UDP ports are available at the relay. Could you  
check your configuration for the amount of ports you allocated?

This exception should be fixed in the next version, although it would  
still mean there are no more ports to allocate.

Ruud Klaver
AG Projects



More information about the Users mailing list