Removed unnecessary checks.
This commit is contained in:
@@ -650,11 +650,6 @@ class MainActivity : AppCompatActivity() {
|
|||||||
Api.ua_hangup(uap, callp, 486, "Busy Here")
|
Api.ua_hangup(uap, callp, 486, "Busy Here")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
val call = Call.ofCallp(callp)
|
|
||||||
if (call == null) {
|
|
||||||
Log.w("Baresip", "Incoming call $callp not found")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
volumeControlStream = AudioManager.STREAM_RING
|
volumeControlStream = AudioManager.STREAM_RING
|
||||||
if (visible) {
|
if (visible) {
|
||||||
if (ua.account.aor != aorSpinner.tag)
|
if (ua.account.aor != aorSpinner.tag)
|
||||||
@@ -667,16 +662,9 @@ class MainActivity : AppCompatActivity() {
|
|||||||
i.putExtra("action", "call show")
|
i.putExtra("action", "call show")
|
||||||
i.putExtra("callp", callp)
|
i.putExtra("callp", callp)
|
||||||
startActivity(i)
|
startActivity(i)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"call established" -> {
|
"call established" -> {
|
||||||
val callp = params[1]
|
|
||||||
val call = Call.ofCallp(callp)
|
|
||||||
if (call == null) {
|
|
||||||
Log.w("Baresip", "Established call $callp not found")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
volumeControlStream = AudioManager.STREAM_VOICE_CALL
|
volumeControlStream = AudioManager.STREAM_VOICE_CALL
|
||||||
if (ua.account.aor == aorSpinner.tag) {
|
if (ua.account.aor == aorSpinner.tag) {
|
||||||
dtmf.setText("")
|
dtmf.setText("")
|
||||||
|
|||||||
Reference in New Issue
Block a user