<br>Hi Andreas.<br><br>Thanks for your answer. I that case, as you say, how should I setup the configuration?<br><br>After doing lookup("location"), how could I check nat-flag?<br><br>Thanks a lot.<br><i><font color="#000000">
<span style="font-style: italic;"><br></span>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"> <br>EPM TUNE </font></font></i><br>
<i>Tel: 054 3802956</i><br>
<i>Email: <a href="mailto:sergio.gutierrez@une.com.co">sergio.gutierrez@une.com.co</a></i><br><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td><i><br></i>
</td>
</tr>
</tbody></table><br><br><div><span class="gmail_quote">On 8/8/07, <b class="gmail_sendername">Andreas Granig</b> <<a href="mailto:agranig@sipwise.com">agranig@sipwise.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>Maybe the request of this reply hasn't been passed to mediaproxy? If the<br>callee is registered from behind NAT, you know that already in the<br>request because the nat-flag should have been set during registration.
<br>So after lookup("location") the nat-flag should be set, and if so, you<br>have to use_media_proxy() also for the request.<br><br>Andreas<br><br>Sergio Gutierrez wrote:<br>> Hello all.<br>><br>> We are facing some problems in our deployment of OpenSER, related to NAT
<br>> Traversal solution using MediaProxy.<br>><br>> In our scenario, using the the sample configuration NAT detection works<br>> right for REGISTER method, and for INVITE's sent from clients behind<br>> NAT, but, incoming calls originated from transparent clients, directed
<br>> to clients behind NAT do not work, and do not pass through MediaProxy.<br>> 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
<br>> NAT client, so that we could call use_media_proxy(), but, we get the<br>> error: "Empty Response from media_proxy()"<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("7"))<br>> {<br>> setflag(2);<br>> fix_contact();<br>> };<br>><br>> .....<br>><br>> if(is_method("INVITE"))<br>> {<br>> if(isflagset(2))
<br>> {<br>> use_media_proxy();<br>> };<br>><br>> t_on_reply("1");<br>><br>> }<br>><br>> ....<br>><br>> on_reply_route[1]<br>> {<br>> if (status =~ "(18[0-3])|(2[0-9][0-9])|(1[0-9][0-9])")
<br>> {<br>> if (client_nat_test("3"))<br>> {<br>> fix_contact();<br>> use_media_proxy();<br>> }
<br>><br>> }<br>> }<br>><br>><br>> That is a very brief configuration fragment, but it is more or less the<br>> schema of configuration we are using. So far, our solution to be able to<br>> have the whole services working is marking all the calls so that they
<br>> pass through the mediaproxy, but we are not sure if that is a good<br>> solution.<br>><br>> Thanks in advance for every hint or suggestion.<br>><br>> Kind regards<br>><br>> /Sergio Armando Gutiérrez Betancur/
<br>> /S//ubdirección //A//plicaciones //de //S//ervicios //C//onvergentes//<br>> UNE - EPM Telecomunicaciones<br>> / /Tel: 054 3802956/<br>> /Email: <a href="mailto:saguti@gmail.com">saguti@gmail.com</a> <mailto:
<a href="mailto:saguti@gmail.com">saguti@gmail.com</a>>/<br>><br>><br>><br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> Users mailing list<br>> <a href="mailto:Users@openser.org">Users@openser.org</a><br>> <a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br></blockquote>
</div><br>