Remove incoming call notification when call is declined
This commit is contained in:
@@ -636,6 +636,7 @@ class BaresipService: Service() {
|
|||||||
"Call Reject" -> {
|
"Call Reject" -> {
|
||||||
val callp = intent!!.getLongExtra("callp", 0L)
|
val callp = intent!!.getLongExtra("callp", 0L)
|
||||||
val call = Call.ofCallp(callp)
|
val call = Call.ofCallp(callp)
|
||||||
|
nm.cancel(CALL_NOTIFICATION_ID)
|
||||||
stopRinging()
|
stopRinging()
|
||||||
stopMediaPlayer()
|
stopMediaPlayer()
|
||||||
if (call == null) {
|
if (call == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user