From 460eb37b7c5ec037675eae78f60f00ed0e4c584f Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Sun, 15 Jun 2025 19:42:18 +0300 Subject: [PATCH] Reason cause does not need to follow SIP --- app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt index 42390841..4eb83d58 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt @@ -1055,7 +1055,8 @@ class BaresipService: Service() { !reason.startsWith("480") && !reason.startsWith("Connection reset by") val missed = call.dir == "in" && call.startTime == null && !call.rejected - val completedElsewhere = missed && ev[2].startsWith("SIP;cause=200") + val completedElsewhere = missed && ev[2].startsWith("SIP") && + ev[2].contains(";cause=200") if (ua.account.callHistory) { val history = CallHistoryNew(aor, call.peerUri, call.dir) history.stopTime = GregorianCalendar()