<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
On 3/19/10 10:12 PM, Uriel Rozenbaum wrote:
<blockquote
 cite="mid:69b7f9b31003191412t661fb3f0r7b52425715b29d20@mail.gmail.com"
 type="cite">Hi guys,<br>
  <br>
I have some easy doubt about nathelper functions using RTPProxy.<br>
  <br>
I'm trying to bridge from an external IP to an internal IP.<br>
The start-line for rtpproxy is: rtpproxy -l PUBLIC_IP/PRIVATE_IP -s udp:<a
 moz-do-not-send="true" href="http://127.0.0.1:7999">127.0.0.1:7999</a>
-F<br>
It starts OK and I see it when kamailio starts.<br>
  <br>
I'm going to use something like Daniel showed on some other mail:<br>
  <br>
if(dst_ip==private)<br>
&nbsp;&nbsp; force_rtp_proxy("ocfaei");<br>
else<br>
&nbsp;&nbsp; force_rtp_proxy("ocfaei");<br>
  <br>
if i have the invite from a public IP to someone in private on the
request I'll run <br>
force_rtp_proxy("ocfaei");<br>
then the reply will be from private to public... should I run
"force_rtp_proxy("ocfaei");"? or should it be the same?<br>
  <br>
</blockquote>
I can see only same series of flags in all your calls. You need to use
..ie in some cases. IIRC, for invite and reply you should use same
sequence. Good part is that you have only two options :-) .<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-signature">-- <br>
Daniel-Constantin Mierla<br>
* <a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a> </div>
</body>
</html>