Fixed handling of call action when baresip app was not running
This commit is contained in:
@@ -859,6 +859,18 @@ class BaresipService: Service() {
|
||||
return ""
|
||||
}
|
||||
|
||||
@Keep
|
||||
fun started() {
|
||||
Log.d(LOG_TAG, "Received 'started' from baresip")
|
||||
if (callActionUri != "") {
|
||||
val intent = Intent("service event")
|
||||
intent.putExtra("event", "started")
|
||||
intent.putExtra("params", arrayListOf(callActionUri))
|
||||
LocalBroadcastManager.getInstance(this).sendBroadcast(intent)
|
||||
callActionUri = ""
|
||||
}
|
||||
}
|
||||
|
||||
@Keep
|
||||
fun stopped(error: String) {
|
||||
Log.d(LOG_TAG, "Received 'stopped' from baresip with param '$error'")
|
||||
@@ -1194,6 +1206,7 @@ class BaresipService: Service() {
|
||||
var downloadsPath = ""
|
||||
var logLevel = 2
|
||||
var sipTrace = false
|
||||
var callActionUri = ""
|
||||
|
||||
val uas = ArrayList<UserAgent>()
|
||||
val status = ArrayList<Int>()
|
||||
|
||||
Reference in New Issue
Block a user