Added User Agent setting that can be used to set custom SIP request/response
User-Agent header value
This commit is contained in:
@@ -441,12 +441,16 @@ class BaresipService: Service() {
|
||||
activeNetwork = cm.activeNetwork
|
||||
Log.i(TAG, "Active network: $activeNetwork")
|
||||
|
||||
val userAgent = Config.variable("user_agent")
|
||||
Thread {
|
||||
baresipStart(
|
||||
filesPath,
|
||||
addresses.removePrefix(";"),
|
||||
logLevel,
|
||||
"baresip v${BuildConfig.VERSION_NAME} " +
|
||||
if (userAgent != "")
|
||||
userAgent
|
||||
else
|
||||
"baresip v${BuildConfig.VERSION_NAME} " +
|
||||
"(Android ${VERSION.RELEASE}/${System.getProperty("os.arch") ?: "?"})"
|
||||
)
|
||||
}.start()
|
||||
|
||||
Reference in New Issue
Block a user