Commit Graph
1213 Commits
Author SHA1 Message Date
yibaiba 443c7e8308 Merge pull request #89 from BFNOC/pr-port-s-timeout-await 2026-10-29 13:57:16 +08:00
yibaiba 8e2ab6ad84 Merge pull request #88 from BFNOC/pr-refresh-security-client 2026-10-29 13:49:26 +08:00
BFNOC c91ff20532 fix(imscore): await the Lebara UK P-CSCF after a port-s timeout
- Probe with a REGISTER after a Lebara UK port-s timeout and wait for the P-CSCF to reopen port-s once it succeeds
- Keep SMS readiness true with its own reasons while probing and waiting
- Bind the wait and the probe grace to the timed-out port-s generation and P-CSCF, and drop them on a new registration
- Send another probe REGISTER when port-s timed out while an earlier REGISTER was in flight
- End the wait when a REGISTER fails or a refresh negotiates an outbound flow, and the probe grace when recovery backs off
- Count a peer reopen during the wait as on-demand evidence only when no REGISTER is in flight
- Mirror sipOutbound into an atomic and clear the post-REGISTER wait flag on every port-s close
- Log entering, declining and ending the wait, each REGISTER during it and probe retries with the carrier preset and peer reconnect history
- Show in the web UI that SMS reception waits for the carrier to reopen port-s
- Add tests for the Lebara UK wait, probes, failures, stale states, outbound and carriers outside the list
2026-10-29 00:47:52 +08:00
BFNOC fb46910e27 feat(policy): offer new Security-Client parameters on DITO PH refreshes
- Enable refresh_offers_new_security_client in the DITO PH preset
- Assert it in the preset tests and update the preset hash
2026-10-29 00:27:30 +08:00
BFNOC c0f87556ae fix(imscore): offer new refresh SAs only where two SA sets can coexist
- Report from the runtime IMS network whether its IPsec installer can add a set beside the active one
- Keep the refresh REGISTER as on main when it cannot or when an external transport carries the registration
- Log the skipped offer with the missing capability
- Test the userspace, system and missing installers and both skipped cases
2026-10-28 19:49:11 +08:00
BFNOC 32f12ef1ff fix(imscore): await the P-CSCF after closing a port-s flow on retired SAs
- Classify the close of a port-s flow whose SAs a refresh switch deleted as sa_retired
- Await the P-CSCF reopening port-s over the new SAs instead of treating it as a local close
2026-10-28 19:49:06 +08:00
BFNOC 6b688f458b fix(imscore): switch to new SAs when a refresh REGISTER is re-authenticated
- Install the new SA set alongside the active one for SM7
- Send SM7 on its own flow from the offered port-c with the new Security-Verify
- Keep other requests on the old SAs until the 200
- Make the new SAs and flow active on the 200 and move dialogs onto them
- Retire the old SAs and their flows after a message over the new SAs once no transaction is pending, or at their lifetime end
- Delete the new SAs and keep the binding and old SAs when SM7 gets no response or any final non-2xx answer, including 403 and an IP+Port conflict
- Decline any further challenge to SM7 before AKA
- Check the new Security-Server before AKA and refuse it without answering the challenge
- Keep an SM7 write failure or flow close away from the active flow
- Leave an old flow close during the switch to the switch outcome
- Fail the refresh when the new flow closes before the switch completes
- Route protected UDP by sending port-c while both SA sets exist
- Add alongside install, abort, commit and retire to the IPsec installers
- Retire a replaced SA set on stop, a P-CSCF switch and a fresh registration
- Log which registration flow closed
- Gate a refresh only once its offer is reserved, so a failed reservation refreshes as on main
- Run the initial-reject fallback on refreshes with an offer and rewrite only the offered Security-Client
- Log the fallback retry of an offer and the actual delay before the old SAs retire
- Cite TS 24.229 5.1.1.5.1 for keeping the old SAs and mark our own choices in comments
2026-10-28 19:49:06 +08:00
yibaiba cd4d9876ec fix(ims): preserve compatible MPTCP listeners when checking MSS
Probe TCP_MAXSEG on Linux MPTCP listeners and retry with TCP only for EOPNOTSUPP. Retain compatible MPTCP sockets, propagate other errors, and provide a switch to disable the retry. Stabilize the related registration, subscription, and UDP test fixtures.

Validated real IPv4/IPv6 connections on Linux 5.18 and a Linux 7.0 VM. The 179 IMS suite passed 699 tests and local race checks passed five rounds. The VM MPTCP tests passed; its full suite still hits short-deadline test timeouts, as documented.
v2.1.37
2026-10-28 18:49:08 +08:00
BFNOC 2be3e83fe2 fix(imscore): offer new SPIs and port-c on a 2degrees refresh REGISTER
- Add refresh_offers_new_security_client to the IMS register template and every conversion layer
- Enable it in the 2degrees NZ preset
- Reserve a new protected client port on TCP and UDP and draw unused SPIs for each refresh, keeping port-s
- Keep the active SAs, Security-Verify and Authorization on the refresh
- Leave the REGISTER that completes an outbound flow out of the offer
- Decline a challenge that would set up new SAs before AKA and keep the existing binding
- Answer a challenge without Security-Server over the active SAs as before
- Release the offer's reservations on every outcome and log its disposition
- Skip the initial-reject fallback on such refreshes so the active Security-Client is not rewritten
- Log REGISTER response latency
- Add tests for the offer, declined and reused challenges, the key off, outbound completion and binding preservation
2026-10-28 17:34:51 +08:00
yibaiba 5a50a2c697 Merge pull request #87 from BFNOC/pr-sms-ready-after-interrupt
fix(runtimehost): ignore late SMS readiness while IMS is not registered
2026-10-28 16:31:04 +08:00
yibaiba 1e6edd9317 Merge pull request #86 from BFNOC/pr-sms-rx-awaiting-peer
fix(imscore): show SMS RX as awaiting the P-CSCF after a port-s close or timeout
2026-10-28 16:30:43 +08:00
yibaiba bf7d7099ab Merge pull request #85 from BFNOC/pr-child-rekey-pfs
fix(swu): negotiate optional PFS so 2degrees CHILD_SA rekeys succeed
2026-10-28 16:30:28 +08:00
BFNOC e34d905b86 fix(runtimehost): ignore late SMS readiness while IMS is not registered
- Skip the sms_ready state update when IMSReady is false
- Skip SMS readiness snapshots while the runtime is interrupted, retrying, restarting, failed or stopped
- Log each skipped update with the runtime phase
- Test a late snapshot and sms_ready after each down phase
2026-10-28 10:08:23 +08:00
BFNOC 9fbe885c98 fix(imscore): show SMS RX as awaiting the P-CSCF after a port-s close or timeout
- Report a registration whose port-s closed or timed out as awaiting the P-CSCF reconnect
- Report it as not ready again once Vodafone UK validation finds the downlink broken
- Keep reporting not ready after a failed RP report or on another P-CSCF
- Count an RP report failure on the registration flow even when port-s closed during its retries
- Show the awaiting state as pending with its own detail instead of failed in the web UI
- Test the close kinds, every prerequisite, failed validation, report failures, another P-CSCF and the web state
2026-10-28 09:03:49 +08:00
BFNOC eecc55242a fix(swu): wipe the private key of an unused CHILD_SA rekey KE
- Add DiffieHellman.Wipe for the MODP private key, the shared secret and the ECDH key reference
- Use it for every KE a CHILD_SA rekey offered but did not install
- Test refused, mismatched and NONE answers, and that the installed KE is kept
2026-10-27 19:49:39 +08:00
BFNOC 1fe3643732 feat(swu): negotiate optional PFS on CHILD_SA rekey
- Offer the IKE SA D-H group and NONE with KEi when the CHILD_SA has no PFS
- Accept either selection and install the CHILD_SA with or without PFS
- Retry a refused optional-PFS offer once with D-H left out, and the reverse
- Start the next no-PFS rekey with the form that last worked
- Keep D-H transforms ahead of ESN in the rekey proposal
- Reject a D-H selection that carries attributes
- Accept a peer rekey that adds PFS in the IKE SA group
- Name the offer on transport failures and the answer on rejected responses
- Log the offered and selected D-H groups
- Test both D-H forms in both directions, the remembered form, the second rejection and an unretried INVALID_KE_PAYLOAD
2026-10-27 19:49:38 +08:00
BFNOC 4d2ce9111b fix(swu): name our offer when a CHILD_SA rekey is rejected
- Add the offered proposal to a rejected CHILD_SA rekey error
2026-10-27 19:08:58 +08:00
yibaiba 754b0b4c0b Merge pull request #84 from yuyanmengxuan/codex/qmi-serial-requests-orbstack
fix(qmi): add opt-in EC20 request serialization for OrbStack
v2.1.36
2026-10-27 10:03:50 +08:00
杨伟杰 520c15b582 fix(qmi): add opt-in EC20 request serialization for OrbStack 2026-10-26 16:14:27 +08:00
yibaiba c1d7d98c35 docs: refresh READMEs for MCP and v2.1.35 2026-10-26 14:14:02 +08:00
yibaiba df9eaed7b8 docs: add v2.1.35 release notes v2.1.35 2026-10-25 22:23:42 +08:00
yibaiba 7f46bde786 test(ims): cover RP report fallback from the registered flow 2026-10-25 22:18:15 +08:00
yibaiba c70182a2d5 Merge pull request #83 from BFNOC/fix-2degrees-port-s-await
fix(ims): await the 2degrees peer after a clean port-s close
2026-10-25 22:17:35 +08:00
yibaiba e2262e5d29 Merge pull request #82 from BFNOC/fix-rp-report-port-uc
fix(ims): start every RP report on the registered flow
2026-10-25 22:17:23 +08:00
yibaiba 941deeba37 Merge pull request #81 from BFNOC/fix-swu-engine-logs
fix(swu): write SWu engine logs to the log file and name rejected IKE rekey responses
2026-10-25 22:17:10 +08:00
yibaiba d8cdb2e111 Merge pull request #80 from BFNOC/fix-2degrees-contact
fix(ims): accept the userless REGISTER Contact that 2degrees returns
2026-10-25 22:16:58 +08:00
yibaiba a234695a82 docs(mcp): prepare public-facing guides without local deployment details 2026-10-25 21:57:02 +08:00
yibaiba 1af9469e6c docs(mcp): record contract and diagnostics deployment checks 2026-10-25 21:48:19 +08:00
yibaiba 9fb465451b feat(mcp): add output contracts, workflow guidance and access diagnostics 2026-10-25 21:36:28 +08:00
yibaiba 7d8c8a8af3 docs(mcp): record Grok Build deployment verification 2026-10-25 20:59:25 +08:00
yibaiba 51c998bc1c feat(mcp): support Grok Build and simplify setup copy 2026-10-25 20:56:19 +08:00
yibaiba 48a2b3df01 docs(mcp): record token creation form validation 2026-10-25 20:42:15 +08:00
yibaiba 44afb373f7 fix(mcp): explain required token names instead of disabling creation 2026-10-25 20:39:50 +08:00
yibaiba 0469088471 docs(mcp): record deployed token deletion checks 2026-10-25 20:35:42 +08:00
yibaiba b7b38ea74b feat(mcp): allow permanent token deletion and audio cleanup 2026-10-25 20:33:09 +08:00
yibaiba b88a3d7018 docs(mcp): record full settings page layout verification 2026-10-25 20:24:55 +08:00
yibaiba 00e181ca7b fix(mcp): span settings section across the workspace grid 2026-10-25 20:22:22 +08:00
BFNOC d7be6de978 fix(ims): await the 2degrees peer after a clean port-s close
- Await the P-CSCF's on-demand port-s reconnect after an EOF on 2degrees NZ, as on Globe PH and DITO PH
- Cover 2degrees in the EOF await, peer-reset recovery and REGISTER backoff tests
2026-10-25 19:57:14 +08:00
BFNOC 92ba726c11 fix(policy): keep Vodafone UK RP reports on port_us
- Set rp_report_over_port_us in the Vodafone UK preset
- Test that a SIP answer on the registered flow never moves the RP report to port_us
- Note the Vodafone UK RP report path in the operator notes
2026-10-25 19:24:47 +08:00
BFNOC f61966015f fix(swu): name the received payloads when an IKE rekey response is rejected 2026-10-25 19:24:47 +08:00
BFNOC f60d7dbb18 fix(ims): accept the userless REGISTER Contact that 2degrees returns
- Add accept_register_contact_without_user to the REGISTER template and carry it through every carrier conversion
- Enable it in the 2degrees NZ preset
- Log when a binding is matched without the user part
- Guard the conversion round trip so every template field must be populated
- Note the 2degrees Contact form and the override in the operator notes
2026-10-25 19:24:47 +08:00
BFNOC 2820ae35c9 fix(ims): start every RP report on the registered flow
- Send the RP report from port_uc to port_ps for every carrier
- Fall back to the P-CSCF's port_us connection only when the registered flow gets no answer
- Add rp_report_over_port_us so a preset can keep starting on the P-CSCF's port_us connection
- Drop the learned registered-flow state
- Note the RP report path in the operator notes
2026-10-25 19:24:47 +08:00
BFNOC 55c46b7690 fix(logger): write SWu engine logs to the log file 2026-10-25 19:24:47 +08:00
yibaiba 466e7fe458 docs(mcp): record client UI and 179 deployment verification 2026-10-25 18:59:11 +08:00
yibaiba 85a615e7bf feat(mcp): add setup profiles for seven agent clients 2026-10-25 18:54:57 +08:00
yibaiba 40ca0dfa81 feat(mcp): add business tools, token management and browser audio binding 2026-10-25 13:30:08 +08:00
yibaiba 8ca988b157 Merge pull request #78 from SmartElec/fix/volte-recording-finalize
fix(volte): 补发 CallFinalized,修复 VoLTE 通话录音不落库
v2.1.34
2026-10-21 09:13:36 +08:00
yibaiba e774cf10b5 fix(volte): retry and compact voice subscriptions 2026-10-21 09:12:12 +08:00
yibaiba 7326042d63 fix(volte): restore voice indications after radio cycles 2026-10-21 09:11:03 +08:00
miaoguoqiang 5a855d8e11 fix(volte): 补发 CallFinalized,修复 VoLTE 通话录音不落库
内置 VoLTE 只发 CallEnded / CallCanceled,而 phone 层把混音 WAV 转成
MP3、把 RecordingName 写回记录的收尾只挂在 CallFinalized 上
(lifecycle.go)。缺这个事件时通话照常接通、WAV 也写到磁盘,但永远
不会被转码:通话记录里没有录音,每通电话还会留下一个孤儿 _mixed.wav。

三条终态路径都补发,漏掉任何一条都会让对应场景继续没有录音:

- QMI 上报终态(handleVoiceInfo),用 prev.State 判断是否接通过;
- 会话表兜底收尾,在 call.State 被改成 completed 之前先记 wasConnected;
- 用户主动挂断 / 拒接走的 finishLocalCall —— 这是最常见的挂断方式,
  只补前两处的话真机上仍然拿不到录音。

统一收敛到 emitCallFinalized。终态时 state 已经是 completed
(stateRank 为 4,connected 为 3),必须用更新前的状态判断。未接来电
不补发:没有混音录音,走一遍收尾只会多出一条 recording_unavailable。

测试:TestVoiceAnsweredCallEmitsCallFinalized、
TestVoiceLocalHangupEmitsCallFinalized、
TestVoiceUnansweredCallDoesNotEmitCallFinalized,并更新 MO 序列测试期望。
2026-10-20 21:13:11 +08:00