- Ask authentication password at baresip start if authentication username is
given in account configuration, but password is not.
This commit is contained in:
@@ -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'")
|
||||
|
||||
Reference in New Issue
Block a user