257 Commits
Author SHA1 Message Date
yibaiba 8b631f12f1 fix: separate UDP health from VoWiFi gating 2026-09-12 22:37:08 +08:00
yibaiba 4852c7d337 fix: verify SOCKS5 UDP relay traffic 2026-09-12 20:57:12 +08:00
yibaiba cdb81fb4a3 fix(vowifi): expose SMS receive degradation 2026-09-10 09:34:49 +08:00
Ray de2e71819c fix(vowifi): base health on operational IMS readiness 2026-09-10 08:55:33 +08:00
yibaiba 63c4b2743e fix(dashboard): keep runtime VoLTE phone mode on home cards
Dashboard overwrote worker config with yaml, so Unicom native VoLTE lost
phone_mode and rendered as VoWiFi. Take policy from runtime, attach
native_volte, and merge the same fields from the device list.
2026-09-09 23:25:21 +08:00
yibaiba 31c055c3b4 fix(web): show native VoLTE path on the dashboard
When phone_mode is volte, the home focus uses SIM/LTE/PDN/IMS/Voice instead of the unused VoWiFi stages.
2026-09-09 22:58:14 +08:00
yibaiba 73d5c460cc fix: harden PCSC identity and SIP URN handling 2026-09-09 22:18:34 +08:00
yibaiba b8e470e3d7 fix: scope PCSC PIN retries to the current SIM 2026-09-09 20:11:50 +08:00
yibaiba 10761ffbdb Merge pull request #15 from ZCShou/fix/pcsc-pin-safety
fix(pcsc): gate PIN verification on protected access and stop automatic retries
2026-09-09 19:47:12 +08:00
yibaiba 653a00d6ff Merge pull request #17 from ZCShou/fix/pcsc-identity-without-imei
fix(pcsc): persist reader SIM identity without requiring IMEI
2026-09-09 19:46:41 +08:00
ZCShou 2190c8f0ec fix(pcsc): persist reader SIM identity without requiring IMEI 2026-09-09 12:48:03 +08:00
ZCShou 34fb88e2c1 fix(pcsc): gate PIN verification on protected access and stop automatic retries 2026-09-09 12:48:02 +08:00
ZCShou a50201fef4 fix(pcsc): use native LONG for context and card handles 2026-09-09 12:48:02 +08:00
yibaiba 5b2aa762a5 docs: expose VoWiFi MO SMS readiness in OpenAPI 2026-09-09 10:20:58 +08:00
yibaiba 6468ae4e57 fix: pass Linux PC/SC DWORD as native unsigned long
libpcsclite uses 64-bit DWORD on amd64. Treating it as uint32 smashed the heap while listing readers at startup.
2026-09-09 09:54:01 +08:00
Ray e6dd3a06f9 fix(ims): allow MO SMS without port-s receiver 2026-09-08 20:52:11 +08:00
yibaiba e5ca0f25cb fix: avoid persisting self-routed IMS subscription rejection 2026-09-08 18:56:20 +08:00
yibaiba 28ed2bafa7 fix: persist unsupported IMS subscriptions 2026-09-08 17:01:51 +08:00
yibaiba 02c9d7a28d fix: preserve historical SMS unread state and IMS recovery attempts
Mark historical SMS windows by exact message IDs while retaining the latest-thread watermark API. Validate message ownership and update persisted unread counts atomically.

Match IMS recovery completion to the registered path and failure generation so stale REGISTER/downlink success cannot erase replacement backoff or Retry-After.

Validation: 294 frontend tests, typecheck, targeted lint, SMS backend tests, and IMS/runtime race checks passed. Added regression coverage for both failures; live carrier integration was not run.
2026-09-07 10:45:12 +08:00
yibaiba c9a63731a9 fix(sms): locate notification messages outside inbox windows 2026-09-06 23:49:47 +08:00
yibaiba 1cfc0d3d95 feat(sms): add global inbox notifications and unread count 2026-09-06 23:27:22 +08:00
yibaiba 1f2466838a fix: preserve VoWiFi retry runtime state 2026-09-05 21:37:04 +08:00
yibaiba 34e5bdf959 fix: harden VoWiFi proxy recovery handling 2026-09-05 17:25:45 +08:00
yibaiba a6f43a2ea9 feat(vowifi): let cards pin or randomly pick country proxy nodes
Allow multiple upstream proxies per country, card-level pin or
direct override, and restart WiFi calling when the route changes.
2026-09-05 16:32:58 +08:00
yibaiba b1f4001846 fix: bound WiFi Calling event history 2026-09-05 11:16:17 +08:00
yibaiba 3585faf899 fix: keep contact groups consistent across pages 2026-09-04 21:00:20 +08:00
yibaiba 4fb699f446 fix: harden IMS recovery and contact updates 2026-09-04 20:13:35 +08:00
yibaiba eea9a22edd fix: preserve contact identities and VoWiFi health timing 2026-09-04 18:01:57 +08:00
yibaiba 8fe84e14ab fix(vowifi): measure health from SMS readiness 2026-09-04 17:19:04 +08:00
yibaiba 6970335f50 feat(phone): page contacts and load more on scroll
Add limit/offset listing, keep search by loading remaining pages,
and leave a short drag-import hint in the contacts drawer.
2026-09-04 16:47:30 +08:00
yibaiba dede511355 feat(phone): import and export contacts from common phone books
Parse iOS, Google, Samsung, Xiaomi, Huawei, OPPO, and vivo vCard/CSV
exports, keep multiple numbers under one person, and add batch
import, export, delete, and drag-and-drop in the contacts drawer.
2026-09-04 15:53:34 +08:00
yibaiba 40eaeba7a7 fix(phone): harden IMS recovery and contact identity state 2026-09-04 13:26:21 +08:00
yibaiba 2efb9cabe7 fix(ims): recover early port-s resets and coalesce native VoLTE starts
Track port-s open/close and peer RST, switch P-CSCF with a full security
agreement teardown after Vodafone UK early resets, and keep only one
native VoLTE start in flight per device.
2026-09-04 12:02:34 +08:00
yibaiba 870e1c73a1 feat(phone): add number geolocation, notify attribution, and contacts list
Embed CN phone.dat plus libphonenumber for country/carrier lookup, show
that on SMS/call notifications, and list saved contacts on the Phone page.
2026-09-04 11:55:06 +08:00
yibaiba 261102cbad feat(vowifi): track WiFi Calling health 2026-09-04 11:37:16 +08:00
yibaiba 91b01d8621 feat(phone): show caller carrier/region and save contacts
Incoming calls and the call log resolve 10086/10010 and mobile
prefixes to 中国移动/中国联通, plus country for international
numbers. Names saved as contacts replace the raw number on screen.
2026-09-04 11:18:54 +08:00
yibaiba d1db0948f5 fix: harden modem and IMS recovery 2026-09-04 09:05:21 +08:00
yibaiba bd1000cf67 fix(vowifi): order IMS and SMS readiness events 2026-09-04 08:09:04 +08:00
yibaiba 1c392fd29a fix(volte): keep host off the LTE internet PDN when 网络 is off
Native VoLTE still has the operator default 3gnet bearer for LTE
attach; that cannot be CGACT-deactivated. Hideck must not use it as
usbnet. Always flush/down the data iface when NetworkEnabled is
false, including after IMS PDN comes up.
2026-09-03 20:13:12 +08:00
yibaiba 25a5ef7316 fix(qmi): unstick wedged CTL after SIM swap without CFUN
SIM swap can leave qmi_wwan/qmi-proxy holding a dead cdc-wdm
session while AT still works. Recovery then kept allocating CTL
clients on that wedged port. Prefer AT IMEI during rescan, skip
startup UIM reset when the card is already ready, and if CTL
allocate times out twice with AT alive, USB-reset only that modem.
2026-09-03 19:56:46 +08:00
yibaiba 7383c348a6 fix(qmi): keep StartCore retry and read SIM over AT
QMI DMS allocate timeout after SIM swap was tearing down the worker
because identity refresh only used QMI and recovery treated empty
identity as half-ready. Leave the worker running while StartCore
retries, and read IMSI/ICCID from the AT port so card policy can
apply without a CFUN reboot.
2026-09-03 19:40:08 +08:00
yibaiba 9e4aa7a77d fix(qmi): rebuild after qmi-proxy pipe break on SIM swap
Modem reboot leaves the proxy socket dead while NAS reconcile stays
in flight, so health checks never reopen QMI. Treat that broken pipe
as transport-down, keep AT VoLTE when IMS client allocate fails, and
fall back to AT+CNUM for the local number.
2026-09-03 19:18:27 +08:00
yibaiba 3b1aa9bf3a fix(vowifi): restore runtime boundary test coverage 2026-09-03 18:21:25 +08:00
yibaibaandCursor c4f359cb1e fix(phone): stop incoming ringing after remote hangup
Map QMI disconnecting and early CANCEL/BYE to a missed call, and use standalone titles so WeCom, QQ, Feishu, and other channels no longer stack 通话结束.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 16:21:11 +08:00
yibaiba 84ebdc8eab fix(esim): recover Lebara UK 204/04 identity without deleting the profile
When a Lebara UK eSIM flips to 20404, reset the same ICCID with Disable/Enable or a parking profile, wait for a stable 23487 IMSI, then start VoWiFi. Keep the RF lock. Do not start VoWiFi during recover or on classify-failure for unrelated cards.
2026-09-01 16:09:07 +08:00
yibaibaandCursor f3d5aaf231 feat(vowifi): add Hotlink, AIS, Smart, Globe, KPN and MTN presets
Match home PLMN for travel eSIMs that publicly offer 3GPP Wi-Fi Calling, without guessing balance shortcodes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 15:46:07 +08:00
yibaibaandCursor c1ddcf1864 feat(vowifi): add common travel eSIM carrier presets
Match popular voice eSIMs by home PLMN, including EE, Lycamobile, Japan MNOs, CMHK, and Estonia Elisa for 乌龟卡.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 15:32:17 +08:00
yibaiba 21b7d437e1 fix(volte): hold and resume native calls over QMI
Native HoldCall/ResumeCall were stubs. Send VOICE_MANAGE_CALLS
HOLD_ACTIVE_ACCEPT_WAITING_OR_HELD, then local hold/unhold if the
modem rejects the network supplementary service.
2026-09-01 14:45:55 +08:00
yibaiba bf433ea45b fix(volte): skip unusable UAC and keep China SIMs on native IMS
DJI/Baiwang USB audio enumerates but opening PCM kills QMI on the
same composite. Skip QPCMV and ALSA there; QPCMV failure also skips
PCM open. Working UAC is unchanged. China MCC 460/461 force native
VoLTE. Rebuild QMI when the proxy socket dies during a native call.
2026-09-01 14:22:20 +08:00
yibaiba fd328f74d1 Merge pull request #3 from rayyume/fix/webrtc-public-host-candidate
fix(phone): preserve fixed WebRTC UDP port in public ICE candidate
2026-09-01 13:04:37 +08:00