- use mqueue to execute ua_stop_all Api function on re thread

This commit is contained in:
Juha Heinanen
2018-12-04 01:48:17 +02:00
parent 38e48917c4
commit f899675f45
4 changed files with 34 additions and 10 deletions
@@ -115,7 +115,8 @@ class ContactsActivity : AppCompatActivity() {
if (parts.size == 3) {
val name = parts[1]
val uri = parts[2].trim()
Api.contact_add("\"$name\" $uri")
// Currently no need to make baresip aware of the contact
// Api.contact_add("\"$name\" $uri")
Contact.contacts().add(Contact(name, uri))
}
}
@@ -102,7 +102,7 @@ class MainActivity : AppCompatActivity() {
stopState = "initial"
quitTimer = object: CountDownTimer(5000, 1000) {
override fun onTick(millisUntilFinished: Long) {
Log.d("Baresip", "seconds remaining: ${millisUntilFinished/1000}")
Log.d("Baresip", "Seconds remaining: ${millisUntilFinished/1000}")
}
override fun onFinish() {
when (stopState) {