195 Commits
Author SHA1 Message Date
BFNOC a1374ccf7d fix(esim): abort a switch to Lebara UK when the radio cannot be turned off
- Return the radio release error from releaseRadioBeforeSwitch
- Report the mode read back after a failed release
- Abort the switch to a Lebara UK or unclassified target when the radio stays on
- Keep a failed RadioCycle release of other cards logged and switching
2026-11-27 19:54:52 +08:00
BFNOC 9332c09bc7 fix(esim): abort the switch when the old VoWiFi task has not stopped
- Run onBeforeSwitch before the first SIM access and let it return an error
- Stop VoWiFi before any switch state, identity or radio change
- Bound the pre-switch VoWiFi stop
- Clear only the switch state when a switch is aborted
- Pass AID lookup and LPA open failures to the failure callback
- Return 409 when a switch is aborted for the old VoWiFi task
2026-11-27 18:36:09 +08:00
BFNOC 8411a8b7e3 fix(vowifi): keep the modem until the old VoWiFi runner exits
- Keep the instance while its runner has not exited and remove it after exit
- Report local cleanup failures after a completed handover
- Leave SMS mode and radio for a later disable while the runner has not exited
- Refuse to start or recover VoWiFi while the old runner is still exiting
- Log when a cancelled VoWiFi start has exited
- Release a failed runtime once and keep its instance until the runner exits
- Stop restart and recover on teardown errors
- Stop waiting for the previous lifecycle command at the caller's deadline
- Bound only the queue wait of a restart
- Add StopOrDrain for callers that must not disable an idle device
- Bound the wait for the old task in disable, removal, SIM change, native voice and cellular idle
- Abort RebuildWorker while the old VoWiFi task is running
- Stop VoWiFi and recheck the Worker before a manual modem reset
- Stop a start that turns stale after it was claimed
2026-11-27 18:36:09 +08:00
yibaiba 8a1c29d85f Merge pull request #118 from ilazycat/ml307-support
Preserve the AT-only QMI capability check from #117 when validating phone mode policy, with regression coverage for rejected policy mutations.
2026-11-23 18:37:06 +08:00
yibaiba 663244c44e Merge pull request #117 from SmartElec/fix/at-backend-voice
Preserve verified idle handoff from main; reject missing IMS media, retain recovered audio ownership, and keep waiting and held calls off the audio route.
2026-11-23 18:28:21 +08:00
Jiahui Zhu efe03c30c8 fix(esim): reload switched ML307C profiles with RF off 2026-11-20 13:38:09 +08:00
Jiahui Zhu 04bcac76e7 fix(sms): preserve the selected SIM through submission 2026-11-20 12:51:22 +08:00
Jiahui Zhu ffb5cbceee fix(phone): enforce capability for automatic cellular dialing 2026-11-20 12:51:22 +08:00
Jiahui Zhu 984c4d199d fix(sms): verify each fragment before cross-SCTS recovery 2026-11-20 12:51:22 +08:00
Jiahui Zhu 0c56e920b2 fix(phone): reject cellular IMS without a modem data path 2026-11-20 12:51:22 +08:00
Jiahui Zhu da22cc7a2f fix(sms): match stored multipart pieces by PDU fingerprint 2026-11-20 12:51:22 +08:00
Jiahui Zhu fea491cd65 fix(device): converge strict SIM identity before using the card 2026-11-20 12:51:22 +08:00
Jiahui Zhu f2cf1c9f3b fix(sms): isolate store failures and recheck deletion receipts 2026-11-20 12:51:22 +08:00
Jiahui Zhu f134a02ae6 fix(device): verify IMEI on the opened AT runtime port 2026-11-20 12:51:22 +08:00
Jiahui Zhu 12519e481f fix(device): confirm SIM PIN state before retiring phone runtimes 2026-11-20 12:51:22 +08:00
Jiahui Zhu fd81d9c5e0 fix(sms): preserve AT inbox provenance and durable deduplication 2026-11-20 12:51:22 +08:00
Jiahui Zhu 332f2ea246 fix(sms): require observed groups for cross-SCTS recovery 2026-11-20 12:51:22 +08:00
Jiahui Zhu 63667bc7e0 fix(device): select the AT profile for legacy port bindings 2026-11-20 12:51:22 +08:00
Jiahui Zhu 60658cb4be fix(phone): restore WiFi using the effective card policy 2026-11-20 12:51:21 +08:00
Jiahui Zhu 8e80bf7ad3 refactor(phone): validate the effective phone mode 2026-11-20 12:51:21 +08:00
Jiahui Zhu 096f01d079 fix(device): retire only the matching SIM event timer 2026-11-20 12:51:21 +08:00
Jiahui Zhu 289106b9a4 refactor(device): centralize AT device and stored inbox rules 2026-11-20 12:51:21 +08:00
Jiahui Zhu c0c734a9e1 fix(device): keep SIM prewarm tied to its worker 2026-11-20 12:51:21 +08:00
Jiahui Zhu e15777e730 refactor(device): unify AT discovery and identity rules 2026-11-20 12:51:21 +08:00
Jiahui Zhu 2a07886473 refactor(device): use a common AT SMS scan entry point 2026-11-20 12:51:21 +08:00
Jiahui Zhu 279ed863c2 chore(device): raise default device limit to ten 2026-11-20 12:51:21 +08:00
Jiahui Zhu 54ab14f5f3 fix(sms): recover stored messages and reassemble settled fragments 2026-11-20 12:51:17 +08:00
Jiahui Zhu acc9a2dcd5 fix(device): keep ML307C rediscovery bound to live identity 2026-11-20 12:51:17 +08:00
Jiahui Zhu 1648753e8d fix(sms): preserve unconfirmed submission outcomes 2026-11-20 12:51:17 +08:00
Jiahui Zhu a9791a220b fix(phone): report unsupported ML307C native voice modes 2026-11-20 12:51:17 +08:00
Jiahui Zhu 30c055bedd fix(sms): persist ML307C stored messages before clearing slots 2026-11-20 12:51:10 +08:00
Jiahui Zhu 7e577d2793 feat(modem): support ML307C discovery and AT runtime 2026-11-20 12:37:58 +08:00
yibaiba ccdbf68a57 fix(volte): allow idle AT-only handoff after initialization failure 2026-11-19 23:34:34 +08:00
miaoguoqiang fc3b54863b fix(volte): refuse VoLTE on a device without QMI and drop the idle session
Native VoLTE is driven over QMI: the IMS clients, the IMSA registration
subscription and VOICEDial all live there. An AT-only device (ECM mode, no QMI)
has none of that, but two paths still pretended otherwise.

Enabling VoLTE answered "VoLTE 已设置" with a 200, wrote the mode into the card
policy, and only then failed inside the enable pass, so the page showed a
success message and quietly kept the previous mode. Refuse the request up front
and say why, leaving the card policy untouched.

The handoff to modem voice always reconciled call state through QMI, so a
session left behind by the earlier enable attempt made the switch fail with
native_volte_stop_failed. That session never owned any QMI call state; drop it
instead of reporting a failure the operator cannot act on.
2026-11-18 12:51:39 +08:00
yibaiba 5e30475b3e fix(device): verify identities across USB re-enumeration and refresh native audio paths 2026-11-17 16:11:31 +08:00
BFNOC 2305ed458d feat(vowifi): reset the card's MWI backoff when MWI is turned on or re-detected
- clear only the card's MWI failure count and local wait, keeping network waits and stop states
- act only on a switch to on or the redetect button, not on saving on again
- reconnect or wake only running runtimes that hold the card, never start one
- reset in the host-held state before the hideck#101 reconnect
- wake the running runtime to re-check MWI when no reconnect is needed
- restart an MWI usage the SIM setting stopped once the setting allows it
- do a proxy change's reconnect first, then reset and wake without a second reconnect
2026-11-08 02:04:08 +08:00
yibaiba c7652cee1c Merge pull request #101 from BFNOC/feat-mwi-policy
feat(vowifi): let carrier presets and a per-SIM setting control SUBSCRIBE(mwi)
2026-11-07 15:57:23 +08:00
yibaiba d43de915de Merge pull request #99 from BFNOC/fix-qmi-radio-off-at
fix(device): turn the radio off over AT when QMI cannot reach the modem
2026-11-07 15:57:02 +08:00
BFNOC beabc334fe feat(vowifi): add a per-SIM voicemail indication setting
- Add mwi_mode to card policies with auto, on and off keyed by ICCID
- Add the ims_mwi_rejections table keyed by ICCID and IMS identity without expiry
- Implement the MWI policy store in the delivery store
- Accept mwi_mode in the card policy API and clear MWI rejections when it is set to on
- Restart WiFi calling after a clear or an explicit redetect so the live registration retries
- Keep mwi_mode edited during an automatic task when the task restores the card policy
- Add the voicemail indication select and redetect button to the card policy panel
- Handle every card_policy_saved_ error code like the restart failure
2026-11-05 11:15:40 +08:00
BFNOC 72ebf9d705 fix(device): turn the radio off over AT when QMI cannot reach the modem
- Fall back to AT+CFUN=4 when setting flight mode fails because QMI is wedged or its transport is down, for both policy projection and the connect-time radio hold
- Keep an explicit QMI failure as the answer and log it instead of retrying over AT
- Skip the fallback while the Pool is shutting down
- Require OK as the first final result of AT+CFUN=4, then read back AT+CFUN? and only treat the radio as off when it reports 4
- Run both AT commands only on the Worker that failed and wait at most 5 s for the AT port each time
- Keep ConnectHoldRF after an AT radio-off so the QMI recovery path can hold the radio again
- Log the QMI error, the AT error and the AT responses on each failed step
- Cover the fallback, explicit QMI failures, shutdown, AT errors, an OK followed by a URC, a failed query, a port that will not open, the read-back check, a busy AT port, a replaced Worker, the kept hold and AT-backend devices in tests
2026-11-04 22:34:59 +08:00
BFNOC be94e4ae31 fix(device): keep the QMI USB reset cooldown across Worker rebuilds
- Record the last USB control-plane reset per USB path on the Pool
- Check that record before resetting, so a rebuilt Worker for the same modem stays on cooldown
- Log the first skipped reset of each cooldown window with the time since the last reset
- Cover a rebuilt Worker, a different modem, cooldown expiry and the once-per-window skip log in tests
2026-11-04 22:05:21 +08:00
yibaiba 458c3edec4 fix(device): clarify QMI startup failures and stabilize tests 2026-10-29 16:11:51 +08:00
yibaiba 7326042d63 fix(volte): restore voice indications after radio cycles 2026-10-21 09:11:03 +08:00
miaoguoqiang 25c01bd672 fix(device): route modem_voice audio by module model, EC20 uses its native UAC 2026-10-19 17:24:38 +08:00
yibaiba ad0f600d47 test(identity): adapt multi-IMSI starts to cancellation context 2026-10-19 09:31:05 +08:00
BFNOC 109114ae4d fix(vowifi): wait for a multi-IMSI card to return to its home IMSI
- Refuse the software IMS start while a card read before on DITO 515-66 is on the 20404 roaming IMSI
- Check it while building the start profile so the WiFi and cellular paths both wait
- Wait for the next retry when the card's IMSI history cannot be read
- Restart the wait for another card in the same modem or after 10 minutes without a drift
- Log each wait, the recovery and a one-time error after 4 minutes
2026-10-19 09:28:46 +08:00
BFNOC 24c9895231 fix(identity): accept every IMSI read on a multi-IMSI card
- Adopt the live IMSI read under the start ownership lock into the worker cache
- Persist the adopted identity after the start ownership lock is released
- Rewrite the stored IMSI on start when it differs from the live IMSI
- Re-parse the VoWiFi profile MCC/MNC from the live IMSI
- Accept an IMSI already read on the same ICCID in the SMS identity checks
- Query /sms by ICCID so SMS under every IMSI of the card are listed
- Log only the IMSI prefix when Lebara UK refuses a flipped card
2026-10-19 09:28:32 +08:00
yibaiba 2168d2667b fix(vowifi): start identity timeout after policy lock 2026-10-19 09:27:08 +08:00
BFNOC a48330d5b0 fix(vowifi): stop waiting for the policy lock once the start is cancelled
- Pass the lifecycle start context through PrepareStart to the policy lock wait
- Poll the policy transition lock and give up when the start context is cancelled
- Release the lock and give up when the cancel lands as the lock is taken
- Bound the start's live identity read by the start context
- Log how long the cancelled start waited
- Skip the profile build error log for a cancelled start
2026-10-19 09:25:33 +08:00
yibaiba f91f3bdc43 Merge pull request #66 from BFNOC/fix-dito-scts-zone
fix(sms): read DITO zero-zone SMSC timestamps as Philippine time
2026-10-19 09:23:55 +08:00