[Freeswitch-users] How to check if user is behind NAT in a programmatic way?

Anthony Minessale anthony.minessale at gmail.com
Fri Nov 4 23:37:00 MSK 2011


sip_nat_detected will be set to true or fs_nat=true param will be present
in contact in the db

if you see neither of these FS is not detecting its nat, probably you have
to disable some other way that the phone or ALG is hiding the nat.


On Fri, Nov 4, 2011 at 3:33 AM, Mateusz Bartczak <netcentrica at gmail.com>wrote:

> Hello
>
> I would like to allow direct p2p media (bypassing FS) between registered
> SIP users, but only if one of them is not behind NAT.
>
> I can't force bypass_media=true for all calls, because many of users are
> behind NAT and this will break communication. I only want to bypass_media
> for users where it's possible.
>
> Is there any way of checking this in a programmatic way? I've checked
> call variables, SIP registration info from database but I can't find any
> related variable.
>
> Any suggestions?
>
>
> 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
>
>


-- 
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
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111104/53809037/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list