fix: disabling IPv6 support may fix DSCP fields absence

This commit is contained in:
Andrew 2026-02-10 12:29:52 +07:00
parent 2e67ea7ff9
commit 79e405797a
2 changed files with 10 additions and 2 deletions

View file

@ -201,6 +201,10 @@ class LinphoneBridge(
core = factory.createCore(null, null, activity.baseContext)
core.addListener(coreListener)
core.isIpv6Enabled = false
core.config.setInt("net", "ipv6", 0)
core.config.sync()
// Enable video
core.isVideoCaptureEnabled = true
core.isVideoDisplayEnabled = true
@ -360,4 +364,4 @@ class LinphoneBridge(
}
return CallType.Unknown
}
}
}

View file

@ -58,7 +58,11 @@ class LinphoneBridge {
do {
let factory = Factory.Instance
core = try factory.createCore(configPath: nil, factoryConfigPath: nil, systemContext: nil)
code.ipv6Enabled = false
core.config?.setInt("net", "ipv6", 0)
core.config?.sync()
// Add core listener
core.addDelegate(delegate: self)