[Freeswitch-users] Strategies for reliably detecting nat on B-leg?

Bill W freeswitch at aastral.net
Wed Jan 27 10:44:23 PST 2010


Thanks for the reply!

Just to make sure we're on the same page,  my FreeSWITCH sesrver has a 
public IP, and I'm trying to bypass media whenever possible to reduce my 
bandwidth usage.   My concern is trying to bypass media when one of the 
remote endpoints (b-leg) is behind NAT (since I can reliably detect nat 
with aggressive-nat on the A-leg).

Isn't local-network-acl and autonat:x.x.x.x for FS behind nat?

Does this new information change your responses?

Thanks again!
Bill



Anthony Minessale wrote:
> also you can set
> sip_sticky_contact=true
> channel var which will make that session turn on nat lock in the b leg 
> so they can't change the contact to a nat addr
> 
> add it in {} to your dial string like
> 
> {sip_sticky_contact=true}sofia/internal/foo at bar.com <mailto:foo at bar.com>
> 
> 
> 
> 
> On Wed, Jan 27, 2010 at 11:50 AM, Brian West <brian at freeswitch.org 
> <mailto:brian at freeswitch.org>> wrote:
> 
>     update to trunk.  and don't use agressive-nat, set
>     local-network-acl, set the ext-rtp-ip and ext-sip-ip to
>     autonat:x.x.x.x or if you're behind a natpmp or upnp router set it
>     to auto-nat.
> 
>     It should just work.  Again you have no real way to know if the far
>     end client never lies to you.  Which it should never do anyway.
>      Endpoints should know how to traverse their own nat and not leave
>     it up to the registrar to figure it out.
> 
>     /b
> 
>     On Jan 27, 2010, at 11:31 AM, Bill W wrote:
> 
>      > Thoughts?  Suggestions?
> 
> 
>     _______________________________________________
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     http://www.freeswitch.org
> 
> 
> 
> 
> -- 
> Anthony Minessale II
> 
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
> 
> AIM: anthm
> MSN:anthony_minessale at hotmail.com 
> <mailto:MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com 
> <mailto:PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
> 
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org 
> <mailto:sip%3A888 at conference.freeswitch.org>
> iax:guest at conference.freeswitch.org/888 
> <http://iax:guest@conference.freeswitch.org/888>
> googletalk:conf+888 at conference.freeswitch.org 
> <mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:+19193869900
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org




More information about the FreeSWITCH-users mailing list