Commit Graph
496 Commits
Author SHA1 Message Date
yibaiba ae87b79e30 fix(volte): unique native call IDs and bounded ALSA open
QMI reuses call slot 1, so volte-{device}-{qmiID} overwrote history.
Identify live calls by QMI id and mint a unique persistent call_id.
Cap ALSA open at 800ms, refine hwparams before HW_PARAMS, and skip
later opens after a failure so dialing is not blocked by set_interface.
2026-08-24 18:21:32 +08:00
yibaiba 5119e01219 fix(device): skip QMI handshake and fall back to AT IMEI
Identity probes were spending the rescan budget on GET_VERSION/sync,
so USB re-enumeration left configured modems with empty IMEI. Skip the
open handshake for DMS-only reads and retry IMEI on the same device AT
port when QMI fails.
2026-08-24 18:21:24 +08:00
yibaiba 7e05067494 fix(volte): refresh UAC status when the USB sound card appears
Worker start can beat snd-usb-audio bind. Re-read the USB-parent
ALSA device on status so the phone page stops claiming reboot.
2026-08-24 16:12:48 +08:00
yibaiba 01b197165c fix(volte): talk to module UAC through ALSA ioctls
179 has no alsa-utils. Open hw:N,M capture/playback with kernel
ioctls so a re-enumerated USB sound card can carry call audio.
2026-08-24 16:08:29 +08:00
yibaiba d3a39c5ceb fix(volte): play call audio from the module UAC card
Signaling used a silent PCM sink, so 10000 connected with no sound.
Open the USB-parent ALSA device during the call and do not claim UAC
ready until that card exists.
2026-08-24 16:03:29 +08:00
yibaiba ea10457745 fix(volte): clear stale calls when QMI EndCall returns 0x0029
Reject/hangup failed with invalid call id after the modem already
dropped the call, so the local session stayed busy. Treat already-gone
VOICE errors as ended and emit CallEnded.
2026-08-24 15:50:23 +08:00
yibaiba 6d747adc01 fix(volte): send SMS via modem instead of software VoWiFi
Native VoLTE reuses VoWiFiEnabled as the phone-on bit, so SMS was still
routed to the software IMS path. Modem AT/QMI SMS is the native path.
2026-08-24 15:44:41 +08:00
yibaiba 2aff241c18 fix(ui): blur header IMEI and ICCID with identity toggle
The workspace header printed full IMEI/ICCID while the identity card
below already masked them. Both now share the same visibility switch.
2026-08-24 15:26:10 +08:00
yibaiba 3142ea305e fix(volte): show native IMS on device overview stage
Overview still keyed off vowifi_enabled, so a registered VoLTE modem
looked like Wi-Fi Calling waiting for an ePDG tunnel.
2026-08-24 15:16:20 +08:00
yibaiba b5e785f32a fix(volte): stop treating native mode as WiFi calling
Card policy already stored phone_mode=volte with airplane off, but the
embedded UI still classified any non-cellular mode as WiFi calling and
locked flight. Device list also dropped PhoneMode when merging yaml.
2026-08-24 15:04:24 +08:00
yibaiba aea62a5e6d fix(volte): project RF on enable and skip missing usbcfg
Why: live Enable on 179 failed twice: volte PATCH left CFUN=4 so CEREG stayed 0; CU-VoLTE MBN returns ERROR for AT+QCFG usbcfg and aborted identity.

Why this works: enabling native VoLTE now applies card policy so camped modes leave airplane. Provision continues IMS when usbcfg is unsupported and does not demand UAC bits.

Remaining: redeploy to 179 to register Unicom IMSA; no real call yet.
2026-08-24 14:37:04 +08:00
yibaiba f1a5994671 fix(device): ignore stale SIM snapshot and UIM IMSI errors
Why: after swapping CTE for a China SIM, QMI still reported inserted from the old snapshot, and GetIMSI failure blocked turning off airplane. Reboots could not enumerate the new card.

Why this works: IsSimInserted live-queries UIM when the snapshot has no IMSI/ICCID. Lebara RF lock still applies from cache or 23487 history; a UIM error without Lebara evidence no longer fail-closes flight-mode off. QSIMDET stays 0,0 and CFUN=1,1 is not automatic.

Remaining: physical SIM insert still has no UIM resample path; native VoLTE Enable is not on 179 yet.
2026-08-24 14:10:57 +08:00
yibaiba 74539c0994 refactor(volte): collapse phone policy and share G.711
Why: quality review found triplicate radio policy, untyped native_volte, duplicated mu-law, and IMS lifecycle buried in manager.go.

Why this works: camped modes share PhoneModeCampsOnCell and applyPhoneRadioPolicy; DeviceStatus.NativeVoLTE is volte.Status; PCM bridge calls phone G.711; IMS clients live in ims_clients.go. VoWiFiEnabled JSON/DB name is unchanged.

Remaining: live IMS/UAC still wait on a China VoLTE SIM; AudioRuntime stays unwired until helper audit; Enable half-applied rollback is not in this change.
2026-08-24 10:20:50 +08:00
yibaiba 855e6a4a63 fix(volte): address native call and enable review bugs
Reuse of QMI call ids, inbound PCMU SDP, IMS client leak,
Lebara live classify, and VoLTE policy mirroring.
2026-08-24 10:00:17 +08:00
yibaiba 0f93fb928a feat(volte): map China Broadnet 460-15 to a VoLTE MBN
Prefer a dedicated CBN profile when the module has one.
Otherwise use CMCC because CBN shares that radio.
2026-08-24 09:06:03 +08:00
yibaiba e403ec9599 feat(volte): implement native IMS bring-up and PCMU SDP
Map China PLMN to a unique MBN, wait for LTE and IMS PDN, and
give /phone a local PCMU endpoint. Unknown PLMNs fail closed.
2026-08-24 08:57:24 +08:00
yibaiba 1bbb861531 feat(volte): add audio runtime and PCMU bridge
Keep cellular on software IMS. Native VoLTE can bind ALSA by USB
parent path and bridge 8 kHz PCMU frames without claiming UAC ready.
2026-08-24 00:35:35 +08:00
yibaiba 3f4efb0cc5 feat(volte): make native QMI voice events idempotent
Project MO/MT call states once, ignore backward indications,
and reconcile GetAllCallInfo after reconnect.
2026-08-24 00:31:28 +08:00
yibaiba e6759b9f17 feat(volte): manage native IMS clients on demand
Allocate IMS/IMSA/IMSP only for VoLTE, register IMSA indications,
and release them when switching off native mode.
2026-08-24 00:24:47 +08:00
yibaiba 7e911413b8 feat(volte): snapshot and restore modem voice config by IMEI
Write USBCFG/IMS/VoLTE/MBN only after a hashed-IMEI backup.
Failed stages never claim restore; VID/PID and IMEI must match.
2026-08-24 00:15:46 +08:00
yibaiba e550d2edd5 feat(volte): add native VoLTE phone mode on QDC507
Keep wifi and cellular software IMS. VoLTE camps LTE, enables
modem IMS over AT, and routes /phone through QMI VOICE.
2026-08-23 21:55:46 +08:00
yibaiba f1539a354d chore: release 2.0.15 v2.0.15 2026-08-20 15:02:29 +08:00
yibaiba 38fa4d9d74 fix(sms): wait for VoWiFi recovery before sending 2026-08-20 14:59:41 +08:00
yibaiba 273de3e931 feat(web): label personal Weixin as conversational 2026-08-20 14:28:44 +08:00
yibaiba fc70171e17 fix(notify): handle expired personal Weixin context 2026-08-20 14:16:05 +08:00
yibaiba 4d650278c7 fix(vowifi): stabilize EE inbound SMS delivery 2026-08-20 14:03:41 +08:00
yibaiba e80586489e chore: release 2.0.14 v2.0.14 2026-08-19 17:57:46 +08:00
yibaiba 5189749948 fix(notify): restore proactive personal Weixin delivery 2026-08-19 17:52:33 +08:00
yibaiba 65179ff066 fix(vowifi): stabilize protected IMS registration 2026-08-19 17:20:19 +08:00
yibaiba 0bdfb5fe5d fix(notify): correct SMS time and Weixin lifecycle 2026-08-19 17:19:29 +08:00
yibaiba d0c659bbfe chore: release 2.0.13 v2.0.13 2026-08-19 15:54:09 +08:00
yibaiba 7a07c18b24 fix: enforce Lebara UK radio lock safely 2026-08-19 15:43:18 +08:00
yibaiba d22874111d feat: add Lebara UK NextGen WiFi calling and radio lock
Add the 234/87 preset and keep shared eSIMs off domestic cells so a dual-IMSI flip to 20404 cannot kill UK WFC.
2026-08-19 14:58:04 +08:00
yibaiba 63d45ab9e6 chore: release 2.0.12 v2.0.12 2026-08-19 12:56:11 +08:00
yibaiba c3e8e8539f fix: preserve notification binding and DNS state 2026-08-19 12:20:40 +08:00
yibaiba 84b86ecccd fix: put SOCKS5 keepalive and Feishu binding on the right layers
Move UDP associate keepalive into Socks5Transport, reuse staged ePDG DNS with cache only after timeout, and share one trusted Feishu binding helper.
2026-08-19 11:50:11 +08:00
yibaiba e7b6f8a051 fix: authorize Feishu chats and refresh bound notification IDs
First Feishu private chat now binds the sender, later group messages
require that user, and QR apply records the scanner Open ID. Settings
polling merges bound IDs without wiping in-progress form edits.
2026-08-19 11:24:00 +08:00
yibaiba ccc251caed fix: keep VoWiFi up through DNS fallback and SOCKS5 keepalive
ePDG lookup now retries system and public DNS, caches the last good
addresses, and no longer dies on a 3s 1.1.1.1 timeout. SOCKS5 sessions
send NAT keepalives even without NAT-D so GB UDP associates stay open.
Successful IMS/SMS ready events clear stale last_error on the UI.
2026-08-19 11:24:00 +08:00
yibaiba 6d98b9f0aa chore: ignore local scratch dirs in git
Keep old dumps, release output, design scratch, local scripts, and
web prototypes out of the tree.
2026-08-19 11:01:43 +08:00
yibaiba 61541a3c95 fix: reply to Feishu bot chats and bind chat IDs
Plain messages were dropped because only slash commands were handled.
First chat now sends help, later text asks for /help, and group @mentions
are stripped. Chat IDs persist like WeCom so settings and outbound
notifications fill in after the first message.

Recordings stay file cards unless the file is already opus. The lame/AMR
stack cannot encode Feishu voice bubbles, so ffmpeg is not added.
2026-08-19 11:00:42 +08:00
yibaiba b53578f0ad fix: deliver vocall recordings on WeCom and Feishu
Send WeCom recordings as a follow-up message after the accepted reply, attach AMR when MP3 is missing, and upload Feishu recordings as files without blocking the call-result text.
2026-08-19 10:37:21 +08:00
yibaiba cd61b105ff fix: restore personal Weixin inbound after rebind
Clear the iLink cursor when the bot token changes, wait for a real chat token before sending, and align the long-poll client version so replies can be delivered again.
2026-08-19 10:17:05 +08:00
yibaiba de5c5b03a0 fix: keep QR activate hints and fill bound bot user IDs
Show the post-scan send-a-message hint without remounting settings, merge runtime Weixin/WeCom bindings into the form, treat WeCom QR init as waiting, and accept numeric iLink message IDs so personal Weixin can receive again.
2026-08-19 10:14:28 +08:00
yibaiba 5295bd24e1 feat: bind Weixin on QR and add Feishu scan-to-create
Save the Weixin scanner as the default notify target and remind
users to message Weixin, WeCom, and Telegram bots after connect.
Add Feishu QR onboarding using the accounts registration flow
Hermes uses, then persist App ID and App Secret.
2026-08-19 09:30:36 +08:00
yibaiba 7d825f38cb fix: make ePDG timeout retry lifecycle safe 2026-08-19 08:10:14 +08:00
yibaiba bb432ae01f fix: retry first ePDG timeout and keep IMS diagnostics
Retry SWu once after ePDG wait timeout so a cold SOCKS5 UDP
associate does not require a manual reconnect. Keep REGISTER
after SUBSCRIBE(reg) 489, and log REGISTER, SUBSCRIBE, and
interrupt reasons so IMS drop causes are visible.
2026-08-19 07:45:26 +08:00
yibaiba dc1aef43f9 fix: preserve IMS security channel during recovery 2026-08-19 00:44:03 +08:00
yibaiba 29fbf4c6bb docs: keep the README first-login note to password change only 2026-08-18 16:01:18 +08:00
yibaiba afb61c4e68 chore: release 2.0.11 v2.0.11 2026-08-18 14:43:11 +08:00
yibaiba f66b018e55 fix: bind VoWiFi SOCKS5 UDP to the Resin TCP source IP
Host virtual NICs could send IKE on a different address than the
UDP Associate, so external Resin WiFi calling failed until the
adapter was disabled.
2026-08-18 14:42:53 +08:00