diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-02 18:28:47 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-02 18:28:47 +0000 |
commit | c64262f8778d3e2b1a870d6d770c569229caeb90 (patch) | |
tree | 16217308e748dcd69c4c72fc81de501f9dec0266 /etc/inc | |
parent | 60d9fe3205bf399fee2dbb5d3646f68f4f41da99 (diff) | |
download | pfsense-c64262f8778d3e2b1a870d6d770c569229caeb90.zip pfsense-c64262f8778d3e2b1a870d6d770c569229caeb90.tar.gz |
Surpress handback for 15 seconds after suppress_prempt reads 0.
Without this change a active SIP call will experience a 13 second "drop". With this change there is no drop during handback.
Tested-at: Bluegrass.net
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 2f5f8e7..41fede1 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -428,6 +428,15 @@ function interfaces_carp_bring_up_final() { if(!is_array($viparr)) return; $carp_instances_counter = 0; + $counter = 0; + $supress = intval(`sysctl net.inet.carp.suppress_preempt | cut -d" " -f2`); + while($supress > 0) { + sleep(2); + $supress = intval(`sysctl net.inet.carp.suppress_preempt | cut -d" " -f2`); + if($counter > 15) + $supress = 0; + } + sleep(15); foreach ($viparr as $vip) { if($debugging) echo "Upping interface carp{$carp_instances_counter}.\n"; |