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>
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.
Match home PLMN for travel eSIMs that publicly offer 3GPP Wi-Fi Calling, without guessing balance shortcodes.
Co-authored-by: Cursor <cursoragent@cursor.com>
Match popular voice eSIMs by home PLMN, including EE, Lycamobile, Japan MNOs, CMHK, and Estonia Elisa for 乌龟卡.
Co-authored-by: Cursor <cursoragent@cursor.com>
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.
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.
Why: a transient AT/QMI timeout aborted native IMS provision, and QMI LTE placeholder RSSI made the overview look like there was no signal.
Why this works: native VoLTE start retries timeout-class errors, serializes AT on one port, and the overview uses RSRP when RSSI is a sentinel. Shutdown now takes the stop context so IMS can finish Contact Expires=0.
Remaining: Lebara UK RF-lock and unique-MBN failures stay non-retryable.
Why: Ut is HTTPS to an operator-internal IPv4 XCAP host, not SIP. IMS IPv6-only could not reach it, and CS-only devices still opened the page and waited on 502.
Why this works: Vodafone UK starts a second SWu session with APN xcap and omits INITIAL_CONTACT. Errors no longer leak the XCAP URL. The sidebar drops 呼叫设置; /ut redirects home.
Remaining: the xcap PDN gets IPv4, but TCP to the XCAP address still times out.
Why: DEV-20/21 still left StartAdditionalPDNs uncalled and Server.utClient unset, so the second SWu and Ut HTTP never ran on the production path.
Why this works: RunSession starts the xcap slot after IMS is up and waits for it without tearing down IMS on failure. Ut HTTP dials that PDN; a requested XCAP APN does not fall back to the IMS inner network. The API looks up the live runtime instance when utClient is not injected.
Remaining: live operator XCAP is untested; in-app browser MCP is still unavailable.
Why: conference and ECT need more than activeCall plus a ring-only waitingCall; a second answered call was rejected as busy.
Why this works: occupancy is the live call map, capped at two, and a second call is allowed only after the first is connected. SwitchCall changes focus; hangup promotes the remaining call.
Remaining: inbound Replaces, conference, and ECT are still separate rows.
Why: IR.92 2.3.2 requires Ut/XCAP for call forwarding, identity restriction, and barring; MMI codes are not Ut.
Why this works: GET/PUT simservs uses If-Match and one service per request; 404 retries an alternate XUI; missing XCAP PDN returns a visible error.
Remaining: production still needs the XCAP PDN transport wired to the second SWu; browser evidence was not collected in this session.
Why: a one-shot 5s SMSC read left later starts empty, and Darwin qmi-proxy errors hid a successful IMEI rebind.
Why this works: start retries the read, remembers the last IMSI/ICCID SMSC, and the bootstrap test accepts proxy-unsupported as a rebound start failure.
Remaining: preset SMSC fallback is still not a carrier-plan field.
Hold that is not aligned returns 503 with a Chinese message. A second
inbound CallWaiting stays in the active list and is shown on the phone
page and call bar.
/send, automatic tasks, and the balance gateway now use SendRoutedSMS.
A VoWiFi failure falls back to CS once; it does not also send on IMS.
Notify /status shows MWI, and vocall hold from notify stays skipped.
Keep the latest RFC 3842 snapshot on the pool, attach it to device
runtime JSON, and clear it when VoWiFi is disabled. Call-waiting
notify is forwarded from the same dispatcher.
Unused control devices used to fall back to a raw open. On dual-module
hosts that lets the second card grab the fd, then UIM reset/AKA stalls
the modem. Discovery and runtime QMI both stay on the proxy.
Default Wi-Fi calling was skipping bind-time RFOff and treating QMI LowPower as airplane, so the modem could camp after restart. Persist the flight mode and uncamp if NAS comes back while radio is suppressed.
Co-authored-by: Cursor <cursoragent@cursor.com>
Subscribe to MWI, accept in-dialog REFER and call waiting, and advertise
preconditions plus identity headers without enabling emergency calls.
Co-authored-by: Cursor <cursoragent@cursor.com>
The shared 8s context expired during the 3s hold pause, so resume
re-INVITE was cancelled and looked like a protocol failure.
Co-authored-by: Cursor <cursoragent@cursor.com>
Register now advertises outbound, prefers Service-Route then Path, and
tears down RFC 3680 subscriptions in-dialog. Voice adds hold/resume and
RFC 4028 timers; SWu sends AKA' bidding, IKE fragmentation, redirect
limits, and a correctly coded AUTS. Host SMS gets SMMA backpressure and
CS fallback without double-send.
Co-authored-by: Cursor <cursoragent@cursor.com>
TS 24.341 5.3.2.6.2: REGISTER Contact includes +g.3gpp.smsip-msisdn-less so
future SIMs can use MSISDN-less SMS over IP.
TS 24.341 5.3.1.4.2: 488 when In-Reply-To is present and does not match a
submitted SM. Late reports still match the delivery store. RP-MR is not used
to steal another message when In-Reply-To is set.
IR.51: carrier profile now carries sos.epdg.epc.mncXXX.mccYYY.pub.3gppnetwork.org.
Ordinary VoWiFi IKE still uses the standard/custom ePDG.
Keep a single proxy child in the hideck cgroup, do not spawn another
when the socket is busy, and tear it down on shutdown so a restart
does not leave /dev/cdc-wdm busy.
Prefer LPA payloads over labeled SM-DP+ text, fall back to the form
host when an activation blob does not parse, and accept QR screenshots
via drag-and-drop or clipboard paste.
Accept GSMA LPA:1$ payloads, Apple-wrapped URLs, host$token strings,
and labeled SM-DP+/activation-code emails so VOXI, Giffgaff, Airalo
and similar cards can be added from the QR rather than a bare host.
Channel text no longer dumps English direction/reason codes. Hangup,
miss, reject, and busy use 主叫/被叫 and the same title / status layout
as SMS and incoming-call notices.
Native VoLTE skipped the AT manager, so AT+QPCMV=1,2 never ran even when a USB sound card was present. Send it on provision and at call setup, and surface QPCMV failure as silent-audio instead of a healthy UAC path.
Isochronous UAC traffic on the virtual xHCI stalls cdc-wdm writes.
Close ALSA with a 300ms budget before EndCall, ignore leftover EndCall
responses as indications, and skip QMI health eviction during the call
and for 20s after so wwan0 is not marked offline.
VoLTE incoming only published the phone-page SSE event. Channel
notifiers still waited for the terminal result. Broadcast 来电通知
from the phone service on inbound ring, and collapse duplicate
incoming alerts from the software IMS path.
A just-ended native call can reappear on QMI call id 1 and be stored as
a new inbound ringing row. Ignore the same number on that slot for 3s,
close leftover in-progress records on process start, and refresh active
calls when the phone event stream drops.
Hangup could return 204 while native VoLTE never emitted CallEnded, so
the page stayed on 挂断中. Finish the phone-layer call after a successful
hangup or reject, replay events when after_id is from a previous process,
and apply restarted SSE ids instead of dropping them.
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.
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.
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.
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.
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.
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.
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.
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.