<div dir="ltr">Hello,<div><br></div><div><div><div dir="ltr"><div>
This is on Opensips 1.6 with Mediaproxy 2.4.4. Yeah, they're old. I know.</div><div><br></div><div>We see this from time to time:</div><div><br></div></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><div><div><div><div>media-relay[10719]: Traceback (most recent call last):</div></div></div></div></div><div><div><div><div><div>media-relay[10719]: File "/usr/lib/python2.5/site-packages/twisted/internet/udp.py", line 126, in doRead</div>
</div></div></div></div><div><div><div><div><div>media-relay[10719]: self.protocol.datagramReceived(data, addr)</div></div></div></div></div><div><div><div><div><div>media-relay[10719]: File "/usr/lib/pymodules/python2.5/mediaproxy/mediacontrol.py", line 130, in datagramReceived</div>
</div></div></div></div><div><div><div><div><div>media-relay[10719]: self.cb_func(host, port, data)</div></div></div></div></div><div><div><div><div><div>media-relay[10719]: File "/usr/lib/pymodules/python2.5/mediaproxy/mediacontrol.py", line 226, in got_data</div>
</div></div></div></div><div><div><div><div><div>media-relay[10719]: self.substream.send_data(self, data, is_stun)</div></div></div></div></div><div><div><div><div><div>media-relay[10719]: File "/usr/lib/pymodules/python2.5/mediaproxy/mediacontrol.py", line 311, in send_data</div>
</div></div></div></div><div><div><div><div><div>media-relay[10719]: dest.listener.protocol.send(data, is_stun)</div></div></div></div></div><div><div><div><div><div>media-relay[10719]: File "/usr/lib/pymodules/python2.5/mediaproxy/mediacontrol.py", line 159, in send</div>
</div></div></div></div><div><div><div><div><div>media-relay[10719]: self.transport.write(data, (ip, port))</div></div></div></div></div><div><div><div><div><div>media-relay[10719]: File "/usr/lib/python2.5/site-packages/twisted/internet/udp.py", line 155, in write</div>
</div></div></div></div><div><div><div><div><div>media-relay[10719]: return self.socket.sendto(datagram, addr)</div></div></div></div></div><div><div><div><div><div>media-relay[10719]: error: (1, 'Operation not permitted')</div>
</div></div></div></div></blockquote><div><div><div dir="ltr"><div><br></div><div>There doesn't seem to be any pattern. Nor do there seem to be any complaints.</div><div><br></div><div>Today we had it happen about 10 times, far more than the logs indicate is normal. Then we had many lines of this:</div>
<div><br></div></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><div dir="ltr"><div>media-relay[10719]: error: Could not reserve relay ports for session, all allocated ports are being used</div>
</div></div></div></blockquote><div><div><div dir="ltr"><div><br></div><div>Then a few instances of:</div><div><br></div></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><div>
<div><div>media-relay[10719]: File "/usr/lib/pymodules/python2.5/mediaproxy/relay.py", line 175, in lineReceived</div></div></div></div></div><div><div><div><div><div>media-relay[10719]: response = self.factory.parent.got_command(self.factory.host, self.command, self.headers)</div>
</div></div></div></div><div><div><div><div><div>media-relay[10719]: File "/usr/lib/pymodules/python2.5/mediaproxy/relay.py", line 387, in got_command</div></div></div></div></div><div><div><div><div><div>media-relay[10719]: local_media = self.session_manager.update_session(dispatcher, **headers)</div>
</div></div></div></div><div><div><div><div><div>media-relay[10719]: File "/usr/lib/pymodules/python2.5/mediaproxy/mediacontrol.py", line 754, in update_session</div></div></div></div></div><div><div><div><div>
<div>media-relay[10719]: session.update_media(cseq, to_tag, user_agent, media, is_downstream, is_caller_cseq)</div></div></div></div></div><div><div><div><div><div>media-relay[10719]: File "/usr/lib/pymodules/python2.5/mediaproxy/mediacontrol.py", line 566, in update_media</div>
</div></div></div></div><div><div><div><div><div>media-relay[10719]: raise ValueError('Media types do not match: "%s" and "%s"' % (stream.media_type, media_type))</div></div></div></div></div>
<div><div><div><div><div>media-relay[10719]: ValueError: Media types do not match: "audio" and "image"</div></div></div></div></div></blockquote><div><div><div dir="ltr"><div><br></div><div>Followed by lots (and LOTS) of these with various port combinations:</div>
<div><br></div></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div dir="ltr">media-relay[10719]: warning: Cannot use port pair 28836/28837<br></div></blockquote><div><div><div dir="ltr">
<div><br></div><div>This happened on two relays at the same time. The dispatchers lost connectivity with the relays, and I had to kill -9 the relays to shake them loose. Upon a relay restart all seems normal.</div><div>
<br></div><div>Even though old, this media relay configuration has been rock solid for years. Today, not so much. I'm wondering if this is a known bug that hasn't bitten us until today? Or, something else?</div>
<div><br></div><div>They are scheduled for replacement with more current software, but until then, I'd like to learn what I can.</div><div><br></div><div><br></div><div><br></div><div>- Jeff</div><div><br></div></div>
</div>
</div></div>