- Replaced global setting "Prefer IPv6" with account specific

"Prefer IPv6 Media" setting.
- Improved acting on changes in network connectivity.
This commit is contained in:
Juha Heinanen
2020-02-07 01:19:41 +02:00
parent 85b8520fe9
commit 86b60fa0f8
13 changed files with 185 additions and 149 deletions
@@ -57,14 +57,8 @@ object Config {
Log.logLevelSet(ll)
}
removeVariable("net_interface")
removeVariable("net_prefer_ipv6")
val preferIpV6 = variable("prefer_ipv6")
if (preferIpV6.size == 0) {
BaresipService.preferIpV6 = false
} else {
BaresipService.preferIpV6 = preferIpV6[0] == "yes"
if (config.contains("net_interface")) {
BaresipService.netInterface = variable("net_interface")[0]
}
if (!config.contains("call_volume")) {