- use mqueue to execute ua_stop_all Api function on re thread
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user