- 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
- 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
- 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
- Stop starts one release task and every caller waits for it with its own ctx
- Report ErrRunnerNotExited at the deadline and ErrCleanupFailed for local cleanup failures
- Bound the IMS stop in the release task to 5 seconds
- Ignore session, service and voice handles that arrive after Stop
- Add SessionManager.StopAsync and StopAndWait that wait for session goroutines and local cleanup
- Make StopSlot wait for its session
- Stop ePDG sessions with StopAsync in runtimecore and keep the original cleanup order
- Keep local cleanup failures in the runner result after cancellation
- Make the cellular tunnel adapter publish and wait for its stopped session
- Cancel and wait for P-CSCF recoveries on IMS stop
- Stop the IMS service only once
- Log IMS service stop failures
- Add StartWithRunnerForTest for host tests
Preserve verified idle handoff from main; reject missing IMS media, retain recovered audio ownership, and keep waiting and held calls off the audio route.
Hanging up the first call left the second one unusable in practice: the page
offered "恢复双向语音", restored audio, and the call was still not connected.
CLCC showed why — the waiting offer was withdrawn and the call alerted again
(state Incoming), but nothing told the application:
- the modem-voice host reported any non-active call of another line as
"waiting", so the transition back to alerting was published as a media
update and the browser never learned the call could be answered;
- the phone service ignored CallRinging for a call in "waiting", keeping that
status forever;
- the page only offered answer buttons while the call had no media, so once a
recovery had attached audio there was no way to answer it at all, and it
offered media recovery for a call that was not even connected;
- answering it then failed before the modem was asked at all: the AT backend
reports a line index, never an offer, so the waiting call had no SDP to
attach and the phone service refused the empty one with "SDP has no usable
RTP endpoint" — and rejected the call. Ask the backend first, which opens the
endpoint while answering, and attach the offer it hands back.
Mapping the state, accepting the ringing transition, offering 接听/仅听接听 for
ringing and waiting inbound calls and letting the backend negotiate their media
makes answering possible again (AT+CHLD=2 for a waiting call, ATA otherwise).
Hanging up the active call while another one waits sends AT+CHLD=1<idx>, which
per 22.030 also accepts the waiting call. That second call was never answered
through Answer, so nothing opened an audio path for it and no browser owns it.
Recovering it failed five ways:
- the media refresh compared the caller's lease against an empty one and
refused with "control lease does not own this call", so the browser could
never attach; an unbound call has no owner to protect and the first browser
to attach should take it, exactly like answering a ringing call;
- there was no endpoint to attach to, because a call the modem answered on its
own never exchanged an offer; let the backend open one and hand its offer
back, then attach to it;
- the phone service only reaches that hook through the gateway mux, which did
not expose it, so the endpoint was never requested and the browser kept its
"call media endpoint is not negotiated yet" failure;
- a call can own an endpoint without a bridge (ringing, or activated outside
Answer), and the media update rejected exactly that case with "模组直拨音频
尚未连接". Open the missing bridge on the endpoint the browser already
attached to, and keep a held call from opening a second hardware route;
- the hangup confirmation read CLCC once, right after the command, when the
modem had not published the removal yet, and reported "挂断命令已发送,但模组
仍报告通话存在" for a hangup that had in fact worked. Poll for a short while
before believing it.