Have a check through:<br><br><a href="http://www.voip-info.org/wiki-NAT+and+VOIP">http://www.voip-info.org/wiki-NAT+and+VOIP</a><br><br><a href="http://www.voip-info.org/wiki-Asterisk+SIP+NAT+solutions">http://www.voip-info.org/wiki-Asterisk+SIP+NAT+solutions
</a><br><br>Regards<br>Rob<br><br><div><span class="gmail_quote">On 03/09/06, <b class="gmail_sendername">Siqhamo Sifo</b> &lt;<a href="mailto:siqhamo@newlunar.co.za">siqhamo@newlunar.co.za</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have ser sitting on my iptables nat box&nbsp;&nbsp;and my asterisk box on the lan<br>. Ser does forwarding so that any requests (register,invite,ack,...) to<br>the nat box at 5060 r sent to my asterisk box on the&nbsp;&nbsp;lan .I can register
<br>from outside<br>to my asterisk box but there is only one way audio , reason being that<br>when the asterisk box sends a sip packet whith session description the sdp<br>part of the sip packet is not natted .I have tried the following&nbsp;&nbsp;:
<br><br>&nbsp;&nbsp;if(src_ip==<a href="http://10.0.0.0/255.0.0.0){">10.0.0.0/255.0.0.0){</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;force_rtp_proxy();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; encode_contact(&quot;enc_prefix&quot;,&quot;wanip&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sdp_mangle_ip(&quot;
<a href="http://10.0.0.0/255.0.0.0">10.0.0.0/255.0.0.0</a>&quot;,&quot;wanip&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};<br><br><br>and it does not work because my ethernet dump shows that the contact in<br>sdp is<br>
not mangled.<br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:
<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>