Commit Graph
96 Commits
Author SHA1 Message Date
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 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 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 38fa4d9d74 fix(sms): wait for VoWiFi recovery before sending 2026-08-20 14:59:41 +08:00
yibaiba 5189749948 fix(notify): restore proactive personal Weixin delivery 2026-08-19 17:52:33 +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 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 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 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 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 bc17a20b81 fix: recognize USB remount faster and hold RF off first
udev no longer resets a 3s timer on every ttyUSB event. USB
rescan/rebuild sends RFOff before NAS search, then applies the
existing card policy. Process restart does not flight-cycle
already camped SIMs.
2026-08-18 10:48:40 +08:00
yibaiba 13de6d7be4 fix: rematch USB QMI devices and keep delete/re-add usable
Subscribe to kernel uevents and rematch IMEI-only configs after unplug.
Abandon in-flight recovery on delete so the same ID can be added again.
Keep the add dialog on theme tokens and prefill the device ID.
2026-08-17 19:05:05 +08:00
yibaiba be4e0d97a5 fix: do not recover cellular IMS while airplane is on
Airplane plus cellular always was still scheduled for VoWiFi recover,
so EnableVoWiFi could start PDP after flight mode was cleared even
when Network stayed off. Hold recover in that state, refuse dial/data
until RF is back, and restore Network for always when leaving airplane.
2026-08-17 16:40:09 +08:00
yibaiba 76b77d1462 fix: interlock airplane, network, and phone mode
Camp and airplane stay mutually exclusive. Opening network exits
airplane; WiFi calling locks airplane and data; cellular can keep the
software phone while RF is off. Policy screens use a flight switch
instead of a camp/airplane radio pair.
2026-08-17 16:22:08 +08:00
yibaiba 300098edef fix: camp without data and align radio/network UI
Airplane still turns the radio off. Network only starts a data session, so an idle card can stay registered with no traffic. Device list, card policy, overview, and the dialer now describe that split, including that a cellular call temporarily brings data up.
2026-08-17 15:48:14 +08:00
yibaiba 3069a9bd6a fix: say cellular needs Network instead of idle dial-ready
The dialer no longer labels an unnetworked cellular device as waiting to connect on call. API replies also tell the user to turn Network on before on_demand or always can camp.
2026-08-17 15:08:57 +08:00
yibaiba db22458f35 fix: default new devices to airplane and gate cellular on network
New binds and new SIMs start in airplane so QMI does not camp immediately. Cellular on_demand without Network stays RF-off; on_demand/always only take effect after Network is on. The dialer and card policy now say this, and clicking WiFi calling starts the software phone even when it already looks selected.
2026-08-17 15:04:13 +08:00
yibaiba 588e16a992 fix: stop cellular idle VoWiFi recover and restore data toggle
Skip desired-state recover for cellular on_demand so idle devices
do not start SWu. Probe the cellular path before IMS and fall back
to the country proxy when the bearer cannot reach the internet.
Allow the network switch to stay on with cellular software phone.

Bump Docker image to 2.0.4.
2026-08-17 10:39:36 +08:00
yibaiba 3893853e66 fix: do not build SWu tunnel when cellular on_demand has no data
Clicking cellular mode no longer tries IKE_SA_INIT on a down bearer.
on_demand only arms the policy; data and IMS start at dial time.
always still brings data up before the tunnel.
2026-08-17 09:50:16 +08:00
yibaiba f45264f8ce fix: only restart software phone when mode actually changes
Compare previous phone_mode/data_strategy before RestartVoWiFi so a
repeat enable does not bounce an already-running stack. Cellular enable
no longer claims the device entered airplane mode.
2026-08-17 09:36:45 +08:00
yibaiba 99e278a154 feat(ui): add WiFi calling vs cellular mode selector
Expose phone_mode and data_strategy on the phone page and card policy
panels. Switching mode while software phone is already on restarts the
stack so the new path takes effect.
2026-08-17 09:33:44 +08:00
yibaiba 3c0d79742a fix: harden docker runtime, PushPlus transport, and DB write logs
Align the Hub Dockerfile with Dockerfile.github so recordings keep
AMR/MP3 codecs and healthcheck. Send PushPlus over HTTPS with a timeout.
Log traffic rollup, SMS persist, and device IP update failures without
changing call/SMS success semantics.

Bump image to 2.0.3.
2026-08-17 01:35:52 +08:00
yibaiba 4f5736fc5c feat: implement on_demand data hook and interactive confirm for cellular mode
- Add Pool.SimulateCallWithCellularData: connects data before call and
  disconnects after for on_demand cellular mode, passes through for others.
- /cellcall and /vocall and POST /devices/:id/vowifi/calls now route
  through this wrapper.
- Confirm mechanism: supported channels (Telegram/QQ/WeChat/WeCom) block
  via confirmRegistry waiting for /y or /n; unsupported channels (Feishu)
  return false to cancel execution.
2026-08-16 17:04:24 +08:00
yibaiba ed2d9bccc4 feat: add cellular phone mode with data strategy and /cellcall command 2026-08-16 16:34:19 +08:00
yibaiba 1401576259 feat(updater): check Docker Hub versions 2026-08-14 19:53:04 +08:00
yibaiba 13f02620bf feat: complete bot command center integration 2026-08-14 19:51:27 +08:00
yibaiba 0780cbee84 feat(server): make built-in https optional 2026-08-14 19:27:06 +08:00
yibaiba 4f2b4bec64 chore(go): format existing sources 2026-08-14 18:10:20 +08:00
yibaiba 42f561b4ea feat(notify): complete bot onboarding and voice delivery 2026-08-14 18:03:32 +08:00
yibaiba 7059e1335f feat(auth): guide first-login password changes 2026-08-14 17:39:16 +08:00
yibaiba c4f8e99369 fix(device): push recovered SIM identity 2026-08-14 16:04:20 +08:00
yibaiba 2b523ca434 fix(device): restore local phone lookup 2026-08-14 15:51:55 +08:00
yibaiba 1a3f72f06b fix(telegram): revoke stale channel identities
Retire the previous Telegram channel before applying a persisted identity replacement, while preserving unrelated channels. Restore the prior binding when configuration persistence itself fails.
2026-08-14 15:43:58 +08:00
yibaiba e8ea1fca4d docs(telegram): document bot onboarding
Describe BotFather token setup, authorized private-chat binding, MP3 verification, and the absence of a QR registration flow. Keep the config example and OpenAPI settings contract aligned with runtime behavior.
2026-08-14 15:27:09 +08:00
yibaiba 2bb7d661ad fix(telegram): secure notification settings
Mask Bot Tokens in settings responses, preserve masked values on save, and expose persisted private-chat binding status. Add the Telegram settings panel with optional Chat ID onboarding and responsive fields.
2026-08-14 15:22:07 +08:00
yibaiba adae194fba test(notify): cover concurrent QR finalization 2026-08-14 14:21:59 +08:00
yibaiba 1d262da390 fix(notify): serialize QR credential finalization 2026-08-14 14:16:28 +08:00
yibaiba 821c5883e5 fix(commands): bound realtime history loading 2026-08-14 14:06:44 +08:00
yibaiba 8d54ab3767 fix(settings): serialize notification persistence 2026-08-14 13:45:13 +08:00
yibaiba 95f360128e docs(notify): document QR channel setup 2026-08-14 13:13:07 +08:00
yibaiba 8cba2d78af fix(api): hide disclaimer storage errors
Log internal persistence failures server-side while returning stable operation-specific messages to authenticated clients.
2026-08-14 13:08:14 +08:00
yibaiba 3152749b4b feat(settings): add notification QR onboarding 2026-08-14 13:04:05 +08:00
yibaiba 037a461911 feat(web): persist disclaimer acceptance in database 2026-08-14 12:57:55 +08:00