- Ask authentication password at baresip start if authentication username is

given in account configuration, but password is not.
This commit is contained in:
Juha Heinanen
2020-03-19 07:59:54 +02:00
parent 0109c80402
commit 0be59ce6d4
8 changed files with 140 additions and 18 deletions
@@ -843,6 +843,16 @@ class BaresipService: Service() {
LocalBroadcastManager.getInstance(this).sendBroadcast(intent)
}
@Keep
fun getPassword(aor: String): String {
if (!isServiceRunning) return ""
Log.d(LOG_TAG, "getPassword of $aor")
if (MainActivity.aorPasswords[aor] != null)
return MainActivity.aorPasswords[aor]!!
else
return ""
}
@Keep
fun stopped(error: String) {
Log.d(LOG_TAG, "Received 'stopped' from baresip with param '$error'")