Repository navigation
Commit 7773db4
fix(dialog): DialogRegistry 身份感知移除 — 修复自环 UAS 腿终结误删 UAC 项
自环(同 JVM 同 SipStack 既发 INVITE 又收 INVITE)下,出站 UAC dialog 与
入站 UAS dialog 共享同一 callId,但仅 UAC dialog 注册在 DialogRegistry。
processDialogTerminated 旧实现按 callId 盲删,UAS 腿先终结时误删仍存活、
等待发 BYE 的 UAC 项,导致关流 BYE 抛 DialogNotFoundException。
- DialogRegistry 新增 remove(callId, dialog):computeIfPresent 比对
entry.dialog == dialog,仅终结的正是注册项本身才移除。
- AbstractSipListener.processDialogTerminated 改调身份版,自环对端腿
终结不再误删本侧注册项。
仅 lab 自环触发;真实部署本 JVM 只有 UAC 腿,无交叉删除。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e5dbd11 commit 7773db4
2 files changed
Lines changed: 33 additions & 1 deletion
File tree
- sip-common/src/main/java/io/github/lunasaw/sip/common/transmit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
505 | 507 | | |
506 | 508 | | |
| 509 | + | |
| 510 | + | |
507 | 511 | | |
508 | 512 | | |
509 | 513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
122 | 150 | | |
123 | 151 | | |
124 | 152 | | |
| |||
0 commit comments