Commit Graph

57 Commits

Author SHA1 Message Date
Andrey Volk 68d680eb25 FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_nat.c 2019-07-15 23:43:48 +04:00
Andrey Volk a7477ed0e2 FS-11911: Fix build on Debian Buster 2019-07-15 22:23:25 +04:00
Sergey Safarov df1ab07ca4 FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
Anthony Minessale d413bcd7b3 FS-7567 #resolve #comment additional occurrences beyond the initial patch discovered 2015-05-21 09:50:49 -05:00
Brian West 6eda1c0f04 tweak timeout a little as it was changing to 1000000 on the 5th try on return from switch_interval_time_from_timeval on OpenBSD 2014-07-23 15:39:33 -05:00
Brian West 1be1219afe FS-6680 #resolve 2014-07-23 11:28:07 -05:00
Brian West f11c40d889 FS-6680 #resolve 2014-07-23 11:26:25 -05:00
Anthony Minessale e75d706746 remove select call from switch_nat.c 2014-07-16 03:01:34 +05:00
Brian West 1a58f05891 FS-6621 2014-06-24 14:13:10 -05:00
Travis Cross e8ba8ed5a5 Avoid useless NAT log message
If FS is not behind NAT, then every call generates at least three
INFO-level log messages:

  [INFO] switch_nat.c:589 NAT port mapping disabled

This is useless noise.  The message is only interesting if you do have
NAT enabled but mapping disabled, which might indicate a configuration
issue.

With this change, we just skip the entire nat_add_mapping function if
the NAT system isn't initialized or we're not behind NAT.
2014-05-24 08:57:03 +00:00
Michael Jerris 1b43fa85b5 remove useless variable 2014-04-28 15:19:19 -04:00
Ken Rice 6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Nathan Neulinger 32adc789f6 make noexpandtab explicit in all vim modelines other than xml files 2013-06-25 11:50:17 -05:00
Ken Rice 7a147e4762 Update a ton of copyright statements to make sure the dates are proper 2012-04-25 17:14:55 -05:00
Jeff Lenk 7f4c35c91d comment log of entire upnp keep alive packet - remove debug log clutter 2012-03-01 09:28:38 -06:00
Marc Olivier Chouinard 4185e45035 FS-2360 --resolve 2011-12-15 14:02:07 -05:00
Rupa Schomaker 973a850dbb Lower NAT port mapping disabled log msg from WARNING to INFO 2011-04-19 14:21:33 -05:00
Anthony Minessale 008f988990 FS-3208 --resolve 2011-04-01 12:30:24 -05:00
Anthony Minessale e7acd4d138 FS-3054 re-open if this does not fix it. 2011-02-21 20:17:58 -06:00
Anthony Minessale 4ae8282e6c fix possible bad pointer in global vars (please test) 2011-02-02 15:43:26 -06:00
Rupa Schomaker a53933eddb NAT refresh in own thread 2010-09-13 12:12:04 -05:00
Brian West 53761efdf6 fix logging and missing new line 2010-06-30 11:11:21 -05:00
Rupa Schomaker 8c8d962e3a fix perms 2010-06-21 09:51:57 -05:00
Rupa Schomaker b36f2a23bf timer based nat_map refresh 2010-06-21 09:51:57 -05:00
Michael Jerris 4f97df4625 printers do not route to the internet, in fact, all printers do is kill trees, killers are evil and as such should be ignored
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16601 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-11 08:33:03 +00:00
Anthony Minessale 886e1ddb4d run indent on the whole tree and update copyright dates in prep for 1.0.5
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16579 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-06 03:38:24 +00:00
Brian West 650f55bf2f doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16255 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-12 01:47:31 +00:00
Brian West fe74b20563 don't segfault when -nonat is used and nat_map reinit is called
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16253 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-12 00:40:43 +00:00
Brian West 222d5d9131 nat tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16199 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-07 16:52:01 +00:00
Brian West 21e3bb970a if space
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15893 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-11 01:20:26 +00:00
Stefan Knoblich e5aab71668 Make "No PMP or UPnP NAT detected" message a tad more clear
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15345 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-04 11:55:45 +00:00
Anthony Minessale df7637f687 change switch_strlen_zero to zstr
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15211 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-23 16:03:42 +00:00
Anthony Minessale fbbd62047c unint memory may be confused for an ip change
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14623 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-24 20:16:23 +00:00
Anthony Minessale 7868054dd7 shot in the dark for FSCORE-410
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14431 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-30 16:20:47 +00:00
Brian West 1b26db6e55 FSCORE-405
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14373 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-27 14:31:47 +00:00
Mathieu Rene 83c3a24f28 fix logic issue and refactor some event function calls
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14295 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-18 19:20:21 +00:00
Brian West fc98966e5a FSCORE-402
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14241 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-14 14:22:32 +00:00
Brian West 469f1bf989 fix regression
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14078 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-01 03:17:58 +00:00
Brian West 7855539581 doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14068 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-30 21:47:47 +00:00
Brian West e5eb577f8e update to fix truncated ip
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14060 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-30 20:11:22 +00:00
Brian West 813fd67a79 fix this for now
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14057 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-30 19:36:44 +00:00
Brian West b6363dc294 LOOK OUT BELOW... (FSCORE-381)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14055 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-30 18:59:05 +00:00
Brian West 7d597b996b don't let 0.0.0.0 be valid for upnp because some devices that are not internet gateways will return this ie printers
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13720 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-09 14:40:27 +00:00
Brian West 35c1d7bec7 Mirror back the port so people don't ask why its ZERO
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13646 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-05 19:31:25 +00:00
Mathieu Rene 3821b38d34 Use a new natpmp_t object for every request
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13636 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-05 15:01:54 +00:00
Mathieu Rene dd3ad37b13 fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13635 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-05 14:39:28 +00:00
Mathieu Rene b633d3298e add an external port output parameter to switch_nat_add_mapping and use it in sofia_glue_tech_choose_port
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13629 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-05 02:30:44 +00:00
Anthony Minessale d77a3b1980 fix long delay in nat detection
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13557 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-02 22:46:38 +00:00
Anthony Minessale 4577ec8788 fix order of ops to enable logging sooner
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13556 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-02 22:03:33 +00:00
Anthony Minessale b82984fe97 add netmask detection for nat discovery work
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13549 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-02 16:55:10 +00:00