Commit b18e1f3 for jssip.net

commit b18e1f304f9a4e32d28b229b4318c8ae83526710
Author: José Luis Millán <jmillan@aliax.net>
Date:   Tue Oct 20 11:01:20 2026 +0200

    Dialog: Fix, Dialog.isTerminated() never returns true

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 04f6d70..4039786 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@

 ### NEXT

+- Dialog: Fix, Dialog.isTerminated() never returns true (#981). Thanks to @deltapath-eric.
+
 ### 3.13.8

 - RTCSession: Fix, remove refer_to uri headers when creating target uri for INVITE (#971). Thanks to @karstenluedtke.
diff --git a/src/Dialog.js b/src/Dialog.js
index 5ff8ec6..6b72c62 100644
--- a/src/Dialog.js
+++ b/src/Dialog.js
@@ -114,7 +114,7 @@ module.exports = class Dialog {
 	}

 	isTerminated() {
-		return this._status === C.STATUS_TERMINATED;
+		return this._state === C.STATUS_TERMINATED;
 	}

 	update(message, type) {