I have one server where mediaproxy is having serious problems.<div>In the logs I have a lot of:</div><div> media-dispatcher[6067]: error: failed to end dialog: 500 Operation failed</div><div>and a lot of of the following but much less than the above:</div>
<div> media-dispatcher[6067]: error: Got `remove' command from OpenSIPS for unknown session with call-id `83335711-572b-122e-57ab-0024e869f3a5'</div><div><br></div><div>After some preiod of time, from a few minutes to a day or so, media-relay appears to start holding open ports that have long gone dead.</div>
<div>After a while it runs out of ports for new calls and opensips sends the call on without using mediaproxy.</div><div>Traffic graphs support this conclusion. They also show that it was working fine for more than a month then stopped working.</div>
<div><br></div><div>I'm using</div><div> opensips 1.6.2-notls (x86_64/linux)</div><div> mediaproxy is enacted with engage_media_proxy() with dialog write to db on shutdown.</div><div> mediaproxy 2.4.2 (just replaced with 2.4.3 but still getting the errors mentioned above in the logs. Haven't seen it run out of ports yet but it has only been a few minutes)</div>
<div> Fedora release 11, kernel 2.6.30.10-105.2.23.fc11.x86_64</div><div><br></div><div>pertinent opensips.cfg stuff</div><div><div><div>modparam("dialog", "dlg_flag", 13)</div><div># db_mode: 0 - NO_DB, 1 - REALTIME, 2 - DELAYED, 3 - ON SHUTDOWN</div>
<div>modparam("dialog", "db_mode", 3)</div></div><div>modparam("mediaproxy", "mediaproxy_socket", "/var/run/mediaproxy-dispatcher.sock")</div><div>modparam("mediaproxy", "mediaproxy_timeout", 500)</div>
<div>modparam("mediaproxy", "signaling_ip_avp", "$avp(s:nat_ip)")</div><div>modparam("mediaproxy", "media_relay_avp", "$avp(s:media_relay)")</div></div><div><div>
modparam("mi_datagram", "socket_name", "/tmp/opensips.sock")</div><div>modparam("mi_datagram", "children_count", 4)</div></div><div><br></div><div><div> if (is_method("INVITE")) {</div>
<div> engage_media_proxy();</div><div> fix_nated_sdp("8","<my hosts ip>"); # topology hide the sdp o header.</div><div> }</div></div>
<div>
pertinent /etc/mediaproxy/config.ini stuff:</div><div><div>[Dispatcher]</div><div>socket_path = /var/run/mediaproxy-dispatcher.sock</div><div><div>[OpenSIPS]</div><div>socket_path = /tmp/opensips.sock</div></div></div><div>
<br></div><div><br></div><div><br></div><div>Thanks for any thoughts.</div><div><br></div><div>Dave</div>