I think there is no need to enable nat on endpoint device, since freeswitch is able to detect correct address from SIP/RTP messages if request is received from networks in nat acl.<br><br><div class="gmail_quote">2011/3/20 <span dir="ltr"><<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Only way I can think of is have the spa3102 register as an fs gateway<br>
using user name and password and bridge to the gateway -- and make sure<br>
natis enabled on the 3102, so fs can detect its external ip address.<br>
<div><div></div><div class="h5"><br>
Nick Rosier <<a href="mailto:nick.rosier@gmail.com">nick.rosier@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I've currently got an Asterisk server running at home but want to<br>
> switch to FS on my external server (located in a DC).<br>
><br>
> Configuration:<br>
> - 2 SPA3102 connected to 2 PSTN lines and 2 phones (on Line1)<br>
> - Couple of voip phones<br>
><br>
> The Asterisk server is running on my local network as are all the<br>
> other devices; everything is connected to a DSL-router with NAT.<br>
> The SPA3102 are configured as Trunks in Asterisk with the following<br>
> configuration:<br>
> allow=ulaw<br>
> canreinvite=no<br>
> context=from-trunk<br>
> disallow=all<br>
> dtmfmode=rfc2833<br>
> host=dynamic<br>
> incominglimit=1<br>
> nat=never<br>
> port=5061<br>
> qualify=yes<br>
> secret=trunk1<br>
> username=trunk1<br>
> type=friend<br>
><br>
> The SPA3102 are configured to register their PSTN-line to the Asterisk<br>
> server. Outbound routes are configured to use 1 of the 2 Trunks.<br>
><br>
> I want to do the same thing with my FS running on a server in the DC.<br>
> I've setup all the devices and can make internal calls. Inbound calls<br>
> on the PSTN lines are also forwarded to the correct voip-devices. I<br>
> just cannot figure out how to configure outbound dialing to the<br>
> PSTN-lines. The Wiki<br>
> (<a href="http://wiki.freeswitch.org/wiki/SPA3102_FreeSwitch_HowTo" target="_blank">http://wiki.freeswitch.org/wiki/SPA3102_FreeSwitch_HowTo</a>) shows I<br>
> should configure them as following:<br>
><br>
> <include><br>
> <extension name="To PSTN"><br>
> <condition field="destination_number" expression="(.*)"><br>
> <action application="bridge"<br>
> data="sofia/internal/${destination_number}@[IP address of<br>
> SPA3102]:5061" /><br>
> </condition><br>
> </extension><br>
> </include><br>
><br>
> The problem here is that the SPA3102 are behind my router so the only<br>
> possibility would be to setup some port forwarding to on the router<br>
> with different ports for the 2 devices. I would rather not do that so<br>
> I was wondering if there is an easier/better way to do that.<br>
><br>
> Any ideas?<br>
><br>
> Rgds,<br>
> N.<br>
><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>
</div></div><font color="#888888">--<br>
Your life is like a penny. You're going to lose it. The question is:<br>
How do<br>
you spend it?<br>
<br>
John Covici<br>
<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a><br>
</font><div><div></div><div class="h5"><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<br>