Mauro,<div>This effect:</div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial; ">c=IN IP4 0.0.0.0172.30.0.205</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"><br>

</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">Where you get two ips shoved together, is usually the result of calling use_media_proxy (or whatever function you are using) more than once.</span></div>

<div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">Of course, the 0.0.0.0 in there is a problem, you need a real IP</span></div>

<div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">-Brett</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"><br>

</span><br><div class="gmail_quote">On Wed, May 13, 2009 at 4:20 AM, Mauro Davi&#39; <span dir="ltr">&lt;<a href="mailto:mauro.davi@acotel.com">mauro.davi@acotel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">












<div lang="IT" link="blue" vlink="purple">

<div>

<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Hi All,</span></font></p>

<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">I have a Media Proxy installed in our VoIP platform. The
Media Proxy machine have 2 Network card, one on a Private LAN the other on a
WAN.</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">Now I configured the Media-Relay with the IP address
0.0.0.0 to listen to all the interfaces.</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">On opensips when then INVITE came from a UA directed
to an internal network element (like PSTN Gateway or IVR) I want to manipulate
the connection information in the SDP message content with the private IP
address.</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">On the 200 OK I want to manipulate the connection
information in the SDP message content with the public IP address.</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">In this way I hope that the Media Relay can work
correctly…</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">But I have a problem, when I use the fix_nated_sdp (after
the use_media_proxy function) on the INVITE sent to the Gateway I obtain the
following SDP result:</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">v=0</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">o=- 0 2
 IN IP4 192.168.193.54</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">s=CounterPath Bria</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">c=IN IP4 0.0.0.0172.30.0.205</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">t=0 0</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">m=audio 30058 RTP/AVP 0 101</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">a=sendrecv</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">a=rtpmap:101 telephone-event/8000</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">a=fmtp:101 0-15</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">a=x-rtp-session-id:EC003DF02E154A31AE923BD612B55FE7</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">a=direction:active</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">a=oldmediaip:192.168.193.54</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">the private IP address 172.30.0.205 is prefixed by
the 0.0.0.0 inserted I think by the mediaproxy module.</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">There is a way to solve this problem?</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">Any suggestion?</span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p><font size="2" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">Thanks in Advance</span></font></p>

<p><font size="3" face="Times New Roman"><span lang="EN-GB" style="font-size:12.0pt">            MD</span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>

</div>

</div>


<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>