Reason cause does not need to follow SIP

This commit is contained in:
Juha Heinanen
2025-06-15 19:42:18 +03:00
parent 9aa9e1d05a
commit 460eb37b7c

View File

@ -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()