- Get DNS servers dynamically also then baresip is started the first time.
This commit is contained in:
@@ -138,6 +138,7 @@ class BaresipService: Service() {
|
|||||||
Utils.copyAssetToFile(applicationContext, a, "$filesPath/$a")
|
Utils.copyAssetToFile(applicationContext, a, "$filesPath/$a")
|
||||||
} else {
|
} else {
|
||||||
Log.d(LOG_TAG, "Asset '$a' already copied")
|
Log.d(LOG_TAG, "Asset '$a' already copied")
|
||||||
|
}
|
||||||
if (a == "config") {
|
if (a == "config") {
|
||||||
var dnsServers = listOf<InetAddress>()
|
var dnsServers = listOf<InetAddress>()
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||||
@@ -152,7 +153,6 @@ class BaresipService: Service() {
|
|||||||
Config.initialize(dnsServers)
|
Config.initialize(dnsServers)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ContactsActivity.restoreContacts(applicationContext.filesDir)
|
ContactsActivity.restoreContacts(applicationContext.filesDir)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user