It sounds like the Windows Internet Gateway is performing a standard PAT (port address translation) version of NAT, but since it is not SIP aware, it is not smart enough to realize that the SIP header contains directions to reply on a specific port (5060) it just figures "if I pass this data out port 62000, I expect it back on port 62000" it doesn't know anything about what the data contains..<br>
<br>Most routers have (at least a limited) an awareness of SIP traffic, so they "read" the SIP messages and manipulate port information when it re-sends the packet. That's to say when it passes the data out port 62000 on the public / WAN interface, it's changed the SIP header to tell FS to reply back on port 62000.. when it gets the reply, it then changes the SIP header again and passes the message back to the ATA on port 5060 of it's private / LAN interface.<br>
<br><div class="gmail_quote">On Wed, Apr 6, 2011 at 9:05 AM, Vitalii Colosov <span dir="ltr"><<a href="mailto:vetali100@gmail.com">vetali100@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Randy,<div>Thanks for the advice.</div><div><br></div><div>In general yes, there are always some options to be considered.</div><div><br></div><div>But mostly I am curious now - is Windows Internet gateway really not following the standards, or it is just a matter of proper configuration?</div>
<div><br></div><div>Vitalie</div><div><div></div><div class="h5"><div><br><div><br><div class="gmail_quote">2011/4/6 Randy Andrade <span dir="ltr"><<a href="mailto:randy.andrade@gmail.com" target="_blank">randy.andrade@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there no option of putting an inexpensive switch or router in front of the Windows PC to perform Internet Gateway function? It would probably be the preferred methodology.<br><br><div class="gmail_quote"><div><div></div>
<div>On Wed, Apr 6, 2011 at 8:49 AM, Vitalii Colosov <span dir="ltr"><<a href="mailto:vetali100@gmail.com" target="_blank">vetali100@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>Hi list,<div><br><div>I am testing the following configuration:</div><div>
<br></div><div>Sip ATA adapter (Linksys PAP2) -> Windows PC (Internet Gateway) -> ... Internet ... -> FreeSWITCH</div>
<div><br></div><div>Sip adapter sends REGISTER to the FS, from port 5060, however Windows Gateway transfers this packet to FS from a different port (for example 62000).</div>
</div><div>FS replies to the port 5060 (it looks like it takes it from the SIP text information).</div><div>So Windows Gateway receives the answer to the port 5060, but since it expects it to be received in 62000, it looks like it drops the packets.</div>
<div><br></div><div>The only way to fix this, is to set NDLB_force_port= true in the internal profile configuration file.</div><div>In this case, FreeSWITCH replies exactly to the port 62000, and windows forwards it to the Sip adapter on port 5060.</div>
<div><br></div><div><br></div><div>Do you know whether it is possible to configure Windows to route properly?</div><div>Or maybe there is a way to configure the Sip adapter? (Like it will say to windows PC - hey, don't change the port, use the same as I am using... :)) Or it is a fantastic wish)</div>
<div><br></div><div>Otherwise I will have to create 2 internal sip profiles, one with NDLB_force_port = true (for those who uses Windows PC as the gateway), and another with NDLB_force_port = false (for those who use normal routers).</div>
<div>And I need 2 default dialplans, etc... so it complicates the solution.</div><div><br></div><div><br></div><div>Thank you,</div><div>Vitalie</div><div><br></div><div><br></div>
<br></div></div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>