Stop event processing when call is auto-rejected

This commit is contained in:
Juha Heinanen
2024-09-20 17:58:23 +03:00
parent 1e93130f58
commit 7e36c2a9b7
3 changed files with 14 additions and 1 deletions
@@ -714,6 +714,7 @@ class BaresipService: Service() {
if (toastMsg != "") {
Log.d(TAG, "Auto-rejecting incoming call $uap/$peerUri")
Api.sip_treply(callp, 486, "Busy Here")
Api.bevent_stop(ev[2].toLong())
toast(toastMsg)
val name = "callwaiting_$toneCountry"
val resourceId = applicationContext.resources.getIdentifier(