Tell baresip, CPU, and Android information in User-Agent header

This commit is contained in:
Juha Heinanen
2024-03-04 07:14:31 +02:00
parent da6cc9196d
commit a7c52f280f
2 changed files with 22 additions and 4 deletions
@@ -442,7 +442,13 @@ class BaresipService: Service() {
Log.i(TAG, "Active network: $activeNetwork")
Thread {
baresipStart(filesPath, addresses.removePrefix(";"), logLevel)
baresipStart(
filesPath,
addresses.removePrefix(";"),
logLevel,
"baresip v${BuildConfig.VERSION_NAME} " +
"(${System.getProperty("os.arch") ?: "?"}/Android${VERSION.RELEASE})"
)
}.start()
isServiceRunning = true
@@ -1536,7 +1542,13 @@ class BaresipService: Service() {
}
}
private external fun baresipStart(path: String, addresses: String, logLevel: Int)
private external fun baresipStart(
path: String,
addresses: String,
logLevel: Int,
software: String
)
private external fun baresipStop(force: Boolean)
companion object {