Hello all.<br><br>We are facing some problems in our deployment of OpenSER, related to NAT Traversal solution using MediaProxy.<br><br>In our scenario, using the the sample configuration NAT detection works right for REGISTER method, and for INVITE&#39;s sent from clients behind NAT, but, incoming calls originated from transparent clients, directed to clients behind NAT do not work, and do not pass through MediaProxy. Services based on re-INVITES do not work either.
<br><br>To solve that issue, we tried to intercept the 200 OK answer coming from NAT client, so that we could call use_media_proxy(), but, we get the error: &quot;Empty Response from media_proxy()&quot;<br><br>Our configuration is more or less like this:
<br><br># In the beginning of the main route<br><br>if(client_nat_test(&quot;7&quot;))<br>{<br>&nbsp;&nbsp; setflag(2);<br>&nbsp;&nbsp; fix_contact();<br>};<br><br>.....<br><br>if(is_method(&quot;INVITE&quot;))<br>{<br>&nbsp;&nbsp;&nbsp; if(isflagset(2))<br>
&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; use_media_proxy();<br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; t_on_reply(&quot;1&quot;);<br><br>}<br><br>....<br><br>on_reply_route[1]<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (status =~ &quot;(18[0-3])|(2[0-9][0-9])|(1[0-9][0-9])&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (client_nat_test(&quot;3&quot;))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fix_contact();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; use_media_proxy();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
<br>}<br><br><br>That is a very brief configuration fragment, but it is more or less the schema of configuration we are using. So far, our solution to be able to have the whole services working is marking all the calls so that they pass through the mediaproxy, but we are not sure if that is a good solution.
<br><br>Thanks in advance for every hint or suggestion.<br><br>Kind regards<br><br><table cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td>
<i><font color="#000000">Sergio Armando Gutiérrez Betancur</font></i><br>
<i><font size="2"><font color="#000000">S</font></font></i><i><font color="#000000">ubdirección </font></i><i><font color="#000000"><font size="2">A</font></font></i><i><font color="#000000">plicaciones </font></i><i>de 
</i><i><font size="2"><font color="#000000">S</font></font></i><i><font color="#000000">ervicios </font></i><i><font color="#000000"><font size="2">C</font></font></i><i><font color="#000000">onvergentes</font></i><i><font color="#000000">
<font size="2">&nbsp; <br>UNE - EPM Telecomunicaciones<br></font></font></i>
<i>Tel: 054 3802956</i><br>
<i>Email: <a href="mailto:saguti@gmail.com">saguti@gmail.com</a></i>
</td>
</tr>
</tbody></table><br><br><br>