<div dir="ltr">It seems no problem already. Everything works as expected.<div class="gmail_extra"><br clear="all"><div>--<br>Nick</div>
<br><br><div class="gmail_quote">2014-04-24 5:12 GMT+04:00 Nick Altmann <span dir="ltr">&lt;<a href="mailto:nick.altmann@gmail.com" target="_blank">nick.altmann@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thank you. I&#39;ll try and report soon.<div class="gmail_extra"><br clear="all"><div>--<br>Nick</div>
<br><br><div class="gmail_quote">2014-04-23 18:49 GMT+04:00 Saúl Ibarra Corretgé <span dir="ltr">&lt;<a href="mailto:saul@ag-projects.com" target="_blank">saul@ag-projects.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
Hi there,<br>
<div><br>
On Apr 19, 2014, at 8:18 PM, <a href="mailto:ag@ag-projects.com" target="_blank">ag@ag-projects.com</a> wrote:<br>
<br>
&gt; I acknowledge that there is is a bug in MediaProxy when engaging ICE. The timeout after 3 minutes is kicking in sometimes when it should not be.<br>
&gt;<br>
&gt; We are hunting this bug now.<br>
&gt;<br>
&gt; Adrian<br>
&gt;<br>
&gt; On 19 Apr 2014, at 06:32, Hòa Nguyễn &lt;<a href="mailto:hoanguyen2708@gmail.com" target="_blank">hoanguyen2708@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; I suppose you&#39;ve used engage_media_proxy() to allocate media session in OpenSIPS<br>
&gt;&gt; You might want to know that if mediaproxy-relay receive a little traffic from phone then don&#39;t receive anything anymore in the next 180s, it will assume that your phone has been crash or something and close the session, then if you use engage_media_proxy(), the relay will send the signal to the dispatcher to close the dialog, hence make OpenSIPS send BYE to both of phones<br>


&gt;&gt; I think in your situation, it can be that your phone first will send RTP to mediaproxy-relay first, then it decides to make a P2P connection and success, then it will uses the P2P and don&#39;t send anything to relay anymore, that make relay release the session and close your call. The solution is not using engage_media_proxy, instead using use_media_proxy/end_media_session<br>


&gt;&gt;<br>
<br>
</div>I managed to catch (and hopefully fix!) the bug. We tested it and it works, but some extra testing would be nice. You can find the patch attached, which can be applied against the 2.6.0 release.<br>
<br>
<br>
Cheers,<br>
<br><br></div></div><div class="">
--<br>
Saúl Ibarra Corretgé<br>
AG Projects<br>
<br>
<br>
<br>
<br></div></blockquote></div><br></div></div>
</blockquote></div><br></div></div>