[OpenSIPS-Users] Mediaproxy relay exception when all the ports are in use

Carlo Dimaggio jaasmailing at gmail.com
Thu Apr 16 11:05:46 CEST 2009


HI all,

I made a test with mediaproxy 2.3.4 in order to check what happens  
when the ports in the relay are not available (all in use).
I saw that there is an exception in the media-relay.

Can you see if it is an expected behaviour?


Thanks,
Carlo


-------------

Log DISPATCHER:

Apr 16 10:56:18 sip media-dispatcher[4623]: debug: Issuing "update"  
command to relay at <IP_PROXY>
Apr 16 10:56:18 sip media-dispatcher[4623]: warning: Relay at  
<IP_PROXY> returned error: Received error from relay at <IP_PROXY> in  
response to "update" command
Apr 16 10:56:18 sip media-dispatcher[4623]: error: Error processing  
request: No suitable relay found
Apr 16 10:56:21 sip media-dispatcher[4623]: debug: Issuing "update"  
command to relay at <IP_PROXY>
Apr 16 10:56:21 sip media-dispatcher[4623]: warning: Relay at  
<IP_PROXY> returned error: Received error from relay at <IP_PROXY> in  
response to "update" command
Apr 16 10:56:21 sip media-dispatcher[4623]: error: Error processing  
request: No suitable relay found


Log RELAY:

Apr 16 10:56:17 proxy media-relay[14342]: debug: Received new SDP offer
Apr 16 10:56:17 proxy media-relay[14342]: Traceback (most recent call  
last):
Apr 16 10:56:17 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/twisted/internet/epollreactor.py", line 197, in  
_doReadOrWrite
Apr 16 10:56:17 proxy media-relay[14342]:     why = selectable.doRead()
Apr 16 10:56:17 proxy media-relay[14342]:   File "/var/lib/python- 
support/python2.5/gnutls/interfaces/twisted/__init__.py", line 82, in  
doRead
Apr 16 10:56:17 proxy media-relay[14342]:     return  
tcp.Connection.doRead(self)
Apr 16 10:56:17 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/twisted/internet/tcp.py", line 362, in doRead
Apr 16 10:56:17 proxy media-relay[14342]:     return  
self.protocol.dataReceived(data)
Apr 16 10:56:17 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/twisted/protocols/basic.py", line 149, in dataReceived
Apr 16 10:56:17 proxy media-relay[14342]:     self.lineReceived(line)
Apr 16 10:56:17 proxy media-relay[14342]: --- <exception caught here>  
---
Apr 16 10:56:17 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/relay.py", line 180, in lineReceived
Apr 16 10:56:17 proxy media-relay[14342]:     response =  
self.factory.parent.got_command(self.factory.host, self.command,  
self.headers)
Apr 16 10:56:17 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/relay.py", line 391, in got_command
Apr 16 10:56:17 proxy media-relay[14342]:     local_media =  
self.session_manager.update_session(dispatcher, **headers)
Apr 16 10:56:17 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/mediacontrol.py", line 673, in update_session
Apr 16 10:56:17 proxy 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)
Apr 16 10:56:17 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/mediacontrol.py", line 422, in __init__
Apr 16 10:56:17 proxy media-relay[14342]:     self.update_media(cseq,  
to_tag, user_agent, media_list, is_downstream, is_caller_cseq)
Apr 16 10:56:17 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/mediacontrol.py", line 463, in update_media
Apr 16 10:56:17 proxy media-relay[14342]:     stream =  
MediaStream(self, media_type, media_ip, media_port, party,  
media_direction)
Apr 16 10:56:17 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/mediacontrol.py", line 317, in __init__
Apr 16 10:56:17 proxy media-relay[14342]:     self.caller =  
MediaParty(self)
Apr 16 10:56:17 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/mediacontrol.py", line 285, in __init__
Apr 16 10:56:17 proxy media-relay[14342]:     self.ports = port_rtp,  
port_rtcp = self.manager.get_ports()
Apr 16 10:56:17 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/mediacontrol.py", line 640, in get_ports
Apr 16 10:56:17 proxy media-relay[14342]:     return  
self.ports.popleft()
Apr 16 10:56:17 proxy media-relay[14342]: exceptions.IndexError: pop  
from an empty deque
Apr 16 10:56:20 proxy media-relay[14342]: debug: Received new SDP offer
Apr 16 10:56:20 proxy media-relay[14342]: Traceback (most recent call  
last):
Apr 16 10:56:20 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/twisted/internet/epollreactor.py", line 197, in  
_doReadOrWrite
Apr 16 10:56:20 proxy media-relay[14342]:     why = selectable.doRead()
Apr 16 10:56:20 proxy media-relay[14342]:   File "/var/lib/python- 
support/python2.5/gnutls/interfaces/twisted/__init__.py", line 82, in  
doRead
Apr 16 10:56:20 proxy media-relay[14342]:     return  
tcp.Connection.doRead(self)
Apr 16 10:56:20 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/twisted/internet/tcp.py", line 362, in doRead
Apr 16 10:56:20 proxy media-relay[14342]:     return  
self.protocol.dataReceived(data)
Apr 16 10:56:20 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/twisted/protocols/basic.py", line 149, in dataReceived
Apr 16 10:56:20 proxy media-relay[14342]:     self.lineReceived(line)
Apr 16 10:56:20 proxy media-relay[14342]: --- <exception caught here>  
---
Apr 16 10:56:20 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/relay.py", line 180, in lineReceived
Apr 16 10:56:20 proxy media-relay[14342]:     response =  
self.factory.parent.got_command(self.factory.host, self.command,  
self.headers)
Apr 16 10:56:20 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/relay.py", line 391, in got_command
Apr 16 10:56:20 proxy media-relay[14342]:     local_media =  
self.session_manager.update_session(dispatcher, **headers)
Apr 16 10:56:20 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/mediacontrol.py", line 673, in update_session
Apr 16 10:56:20 proxy 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)
Apr 16 10:56:20 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/mediacontrol.py", line 422, in __init__
Apr 16 10:56:20 proxy media-relay[14342]:     self.update_media(cseq,  
to_tag, user_agent, media_list, is_downstream, is_caller_cseq)
Apr 16 10:56:20 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/mediacontrol.py", line 463, in update_media
Apr 16 10:56:20 proxy media-relay[14342]:     stream =  
MediaStream(self, media_type, media_ip, media_port, party,  
media_direction)
Apr 16 10:56:20 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/mediacontrol.py", line 317, in __init__
Apr 16 10:56:20 proxy media-relay[14342]:     self.caller =  
MediaParty(self)
Apr 16 10:56:20 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/mediacontrol.py", line 285, in __init__
Apr 16 10:56:20 proxy media-relay[14342]:     self.ports = port_rtp,  
port_rtcp = self.manager.get_ports()
Apr 16 10:56:20 proxy media-relay[14342]:   File "/usr/lib/python2.5/ 
site-packages/mediaproxy/mediacontrol.py", line 640, in get_ports
Apr 16 10:56:20 proxy media-relay[14342]:     return  
self.ports.popleft()
Apr 16 10:56:20 proxy media-relay[14342]: exceptions.IndexError: pop  
from an empty deque



More information about the Users mailing list