From 3c62b60e56e5c06ae7d33d81d03268d0d2f6aa28 Mon Sep 17 00:00:00 2001 From: Michael Walton Date: Wed, 5 Oct 2016 12:24:54 +1300 Subject: res_rtp_asterisk: Add ice_blacklist option Introduces ice_blacklist configuration in rtp.conf. Subnets listed in the form ice_blacklist = , e.g. ice_blacklist = 192.168.1.0/255.255.255.0, are excluded from ICE host, srflx and relay discovery. This is useful for optimizing the ICE process where a system has multiple host address ranges and/or physical interfaces and certain of them are not expected to be used for RTP. Multiple ice_blacklist configuration lines may be used. If left unconfigured, all discovered host addresses are used, as per previous behavior. Documention in rtp.conf.sample. ASTERISK-26418 #close Change-Id: Ibee88f80d7693874fda1cceaef94a03bd86012c9 --- configs/samples/rtp.conf.sample | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configs') diff --git a/configs/samples/rtp.conf.sample b/configs/samples/rtp.conf.sample index 2ef5dd28a..fdd1d530e 100644 --- a/configs/samples/rtp.conf.sample +++ b/configs/samples/rtp.conf.sample @@ -59,6 +59,18 @@ rtpend=20000 ; Password used to authenticate with TURN relay server. ; turnpassword= ; +; Subnets to exclude from ICE host, srflx and relay discovery. This is useful +; to optimize the ICE process where a system has multiple host address ranges +; and/or physical interfaces and certain of them are not expected to be used +; for RTP. For example, VPNs and local interconnections may not be suitable or +; necessary for ICE. Multiple subnets may be listed. If left unconfigured, +; all discovered host addresses are used. +; +; e.g. ice_blacklist = 192.168.1.0/255.255.255.0 +; ice_blacklist = 10.32.77.0/255.255.255.0 +; +; ice_blacklist = +; [ice_host_candidates] ; ; When Asterisk is behind a static one-to-one NAT and ICE is in use, ICE will -- cgit v1.2.3