Docker images were missing /usr/libexec/qmi-proxy, so QMI Proxy mode
could not start inside the container. Install Alpine libqmi in the
runtime base and the source Dockerfiles. Do not run qmi-proxy --version
at build time; that binary is a daemon and hangs the image build.
Also log the selected IMS inner address family for VoWiFi diagnostics.
Based on PR #4.
Restore docker-compose.source.yml against Dockerfile so Alpine and codec packages can still be rebuilt. Daily releases keep copying prebuilt binaries onto hideck-runtime.
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: Vodafone 200 Path;ob does not put outbound on Supported. The first REGISTER therefore had no reg-id, SMS was marked ready, and IP-SM-GW queued MT SMS until a later port-s RST forced a second REGISTER.
Why this works: after 200, if outbound was learned and Contact still lacks reg-id, the same Register() immediately sends the RFC 5626 follow-up. sms_ready waits until that binding exists. Initial REGISTER still omits reg-id.
Remaining: a late CSCF 500 on the first CSeq is ignored once the outbound REGISTER has succeeded.
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: systemd stop used to cancel IPsec before deregister. Wildcard Contact:* then removed the IP-SM-GW binding. Vodafone 488/481 on RP-ACK depended on packing order.
Why this works: Stop waits on the shutdown context, sends Contact-specific Expires=0, and only then tears the tunnel down. The first RP-ACK keeps In-Reply-To; deliver-report and omit-IRT are fallbacks after 488/415/406.
Remaining: live p50 shows no SIP MESSAGE after the last restart, so missing inbox rows are not this duplicate window.
Why: P-CSCF reset the inbound IPsec TCP used for MT SIP. Outbound REGISTER TCP stayed up, so sms_ready stayed true while inbound MESSAGE never arrived.
Why this works: closing the last protected server-push connection schedules an immediate re-REGISTER without dropping the outbound registration state. Other still-open port-s flows are left alone.
Remaining: 179 needs a rebuild to pick this up.
Why: stripping the IP-SM-GW user part after 488 was not TS 24.341 5.3.2.4; the Request-URI must stay the P-Asserted-Identity as received.
Why this works: the first MESSAGE still copies PAI with Content-Transfer-Encoding binary. 488/415/406 retries once without that header. Other 4xx stay final. 5xx still retries.
Remaining: live 179 is still p21 until rebuilt.
Why: Vodafone IP-SM-GW returned 488 Not Acceptable Here on the MT RP-ACK MESSAGE, then the same packing was retried four times. The SMS body was already stored after SIP 202.
Why this works: 4xx except 408 is final for one packing. 488/415/406 then retry once without Content-Transfer-Encoding: binary, then once with a host-only IP-SM-GW Request-URI.
Remaining: live 179 still runs p21 until rebuilt; 488 may persist if the gateway rejects RP-ACK for another reason.
Why: 183 with 100rel/precondition sent PRACK then waited for UPDATE inside the INVITE response callback, so a live 191 200 could not be ACKed and the call failed on UPDATE timeout.
Why this works: PRACK still runs on 183; UPDATE is queued on the call actor with its own timeout. INVITE 200/ACK can complete while UPDATE is in flight; UPDATE 481 after answer is a warning, not an INVITE failure.
Remaining: one 191 retry on 179 after this binary is installed; do not hammer 191 on 503.
Why: CHILD-08 closed while the matrix still said DEV-27, conference/ECT, and inbound Replaces were unfinished.
Why this works: the hold/multi-call row and the conference/ECT row now name the shipped functions and tests; CAPABILITIES.md moves those paths out of not-implemented.
Remaining: phone UI has switch but no merge/transfer endpoints; Ut page has no desktop/mobile browser evidence; emergency originating stays disabled.
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: TS 24.615 requires urn:alert:service:call-waiting on 180 and TUE-CW 480 cause 19.
Why this works: Tests lock waiting 180 Alert-Info, ordinary 180 without that header, TUE-CW 480 Reason cause 19, and CANCEL stopping the timer.
Remaining: none for this row.
Why: IR.92 2.3.8 needs History-Info so a forwarded call can show the original called party.
Why this works: Tests lock single- and multi-level hi-entries, URI and hi-entry cause-param, original-called exposure, and malformed headers that still ring. Originating INVITE still omits a fake index=1 entry.
Remaining: CDIV configuration stays on Ut (DEV-21).
Why: IR.92 2.3.11 requires TS 24.629 consultative transfer, not only inbound REFER.
Why this works: TransferConsultative builds Refer-To with Replaces from the consult dialog tags, waits for NOTIFY sipfrag, then releases both local dialogs. Missing tags fail explicitly instead of falling back to a blind REFER.
Remaining: phone UI merge/transfer endpoints are not wired.
Why: IR.92 2.3.3 requires a temporary conference with factory INVITE, REFER join, and conference-info.
Why this works: MergeConference INVITEs the provisioned factory URI without consuming the two-user occupancy cap, REFERs both connected calls to the focus Contact, and SUBSCRIBEs Event: conference. Missing factory URI is a hard error. Inbound NOTIFY parses conference-info.
Remaining: consultative ECT is DEV-23. History-Info and TUE-CW helpers landed on the shared inbound path; their packing tests close DEV-31 and DEV-32.
Why: Supported advertised replaces while inbound INVITE ignored the header, so ECT could not legally keep the token.
Why this works: Replaces is parsed for call-id, to-tag, from-tag and early-only; a match is reserved as a new dialog and the old one is terminated; malformed, missing, and confirmed early-only cases return 400/481/486.
Remaining: consultative REFER (ECT) and conference still use this lookup rather than reimplementing it.
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: IR.51 4.5/4.7.4 needs an IMS tunnel plus an XCAP tunnel; one failed PDN must not take the other down.
Why this works: AdditionalPDNs is empty unless xcap_apn differs from the IMS APN; StartAdditionalPDNs uses StartSlot and StopSlot isolates failure.
Remaining: the host still has to call StartAdditionalPDNs after the IMS tunnel is up.
Why: Annex B media restriction, preferred access, ToConRef, and WLAN-EPS handover had no preset fields, and invalid values were dropped silently.
Why this works: YAML/API values are normalized; illegal values set AnnexBRejection and leave defaults. There is still no OMA-DM or ANDSF client.
Remaining: hosts must call SelectPreferredAccess / AllowsWLANToEPSHandover; XCAP PDN start is DEV-20.
Why: RFC 7296 2.8.3 requires a new IKE_SA_INIT/IKE_AUTH while the old SA still forwards; the host was stopping the runtime first.
Why this works: OnReauthNeeded keeps the old SA; runUntilInterrupted starts a successor with FastReauthID and no INITIAL_CONTACT, then Deletes the old SA only after the new IKE and Child SA exist.
Remaining: cellular TunnelFactory/startCurrent still recycles the instance sequentially; second PDN is DEV-20.
Why: the alignment doc still overstated ePDG discovery, hold, emergency, and supplementary services, and INVITE always sent Privacy: none plus a fake History-Info.
Why this works: the matrix now splits construction vs production disable vs unimplemented; OIR can set Privacy: id; History-Info is omitted on ordinary originating INVITE.
Remaining: XCAP, conference, ECT, second SWu, and overlapping IKE reauth stay unimplemented.
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.
Why: MO status reports need SMS-SUBMIT bit 5, and an empty SMSC must not block MT delivery.
Why this works: SubmitOptions.StatusReport sets TP-SRR after marshal; readiness.Ready is MT, MOReady still needs SMSC.
Remaining: delivery-store TP-MR fallback is not fully rewired in this commit.
Why: the host cannot encode or decode EVS, so advertising PT 106 lets the network pick a codec we cannot handle.
Why this works: the default offer keeps AMR-WB and AMR without mode-set, telephone-event, and b=AS:41 for that set.
Remaining: incoming EVS can still be recorded; re-offering EVS needs a real encoder.
Why: IR.92 2.2.5 requires Supported: 199 on the initial INVITE and handling RFC 6228 199 without dropping other forks.
Why this works: INVITE Supported includes 199; a 199 response clears only that To-tag's early-dialog state.
Remaining: live 199 from a forking P-CSCF is validation_limited.
Why: IR.92 2.2.4 requires protocol RELEASE_CAUSE on UE-originated CANCEL and BYE.
Why this works: CANCEL is built from the INVITE then gets the Reason header; in-dialog BYE writes the same header in the core request builder.
Remaining: inbound Reason mapping is still best-effort text parse, not a full Q.850 table.
Why: TS 24.229 5.1.3 requires independent early dialogs; latest-wins cannot apply 199 to one fork without killing the others.
Why this works: 18x with a new To-tag retains a second dialog, and 199 closes only that To-tag.
Remaining: 2xx still promotes the matching dialog; remaining forks are cleaned by existing final-response paths.
Why: IR.92 2.2.1 only mandates a new initial registration when 503 has no Retry-After; waiting longer than Timer B would strand an originating INVITE.
Why this works: the existing five-branch decision is unchanged and now documented, including the extra long-Retry-After failover as deliberate tolerance.
Remaining: none for DEV-11.
Why: IR.92 5.7 requires the UE to discover peer Allow/ICSI rather than only answering inbound OPTIONS.
Why this works: discovery is a maintenance action 2s after REGISTER, separate from keepalive, and never forces re-REGISTER on failure.
Remaining: live P-CSCF OPTIONS 200 content is validation_limited.
Why: RFC 3312 requires capability responses to expose precondition when the voice stack already supports it.
Why this works: inbound OPTIONS merges path/sec-agree/outbound with precondition and de-duplicates case-insensitively; Allow still has UPDATE/PRACK and not REGISTER/SUBSCRIBE/PUBLISH.
Remaining: none for DEV-34.
Why: a 3600s registration was only refreshing 60s before expiry, which is too tight after one failed retry.
Why this works: registrations longer than 1200s refresh 600s early; shorter ones refresh at half-time. SUBSCRIBE still uses a 60s lead so reg-event refresh is unchanged.
Remaining: none for DEV-28.