Fixed call.rejected settings
This commit is contained in:
@ -895,7 +895,7 @@ class BaresipService: Service() {
|
||||
call.rejected = call.startTime == null &&
|
||||
!reason.startsWith("408") &&
|
||||
!reason.startsWith("480") &&
|
||||
!reason.startsWith("Connection reset by peer")
|
||||
!reason.startsWith("Connection reset by")
|
||||
val missed = call.dir == "in" && call.startTime == null && !call.rejected
|
||||
if (ua.account.callHistory) {
|
||||
val history = CallHistoryNew(aor, call.peerUri, call.dir)
|
||||
|
||||
@ -384,8 +384,6 @@ class MainActivity : AppCompatActivity() {
|
||||
val callp = call.callp
|
||||
Log.d(TAG, "AoR $aor hanging up call $callp with ${callUri.text}")
|
||||
hangupButton.isEnabled = false
|
||||
if (call.status == "answered")
|
||||
call.rejected = true
|
||||
Api.ua_hangup(ua.uap, callp, 0, "")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user