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

View file

@ -58,7 +58,11 @@ class LinphoneBridge {
do { do {
let factory = Factory.Instance let factory = Factory.Instance
core = try factory.createCore(configPath: nil, factoryConfigPath: nil, systemContext: nil) 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 // Add core listener
core.addDelegate(delegate: self) core.addDelegate(delegate: self)