- Added possibility to configure baresip a TLS certificate and

CA certificates.
This commit is contained in:
Juha Heinanen
2019-08-25 12:14:57 +03:00
parent 977bf4ee05
commit 7106b7eb74
6 changed files with 165 additions and 6 deletions
@@ -642,7 +642,11 @@ class BaresipService: Service() {
fun stopped(error: String) {
Log.d(LOG_TAG, "'stopped' from baresip with error $error")
isServiceRunning = false
if (error == "ua_init") Config.remove("sip_listen")
if (error == "ua_init") {
Config.remove("sip_listen")
Config.remove("sip_certificate")
Config.remove("sip_cafile")
}
val intent = Intent("service event")
intent.putExtra("event", "stopped")
intent.putExtra("params", arrayListOf(error))