- 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
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.
With call waiting, one browser owns one media session and both calls share it.
Ending the first call removed that session unconditionally and cleared the
browser's lease, so the waiting call could no longer be hung up (403 control
lease does not own this call) or rejected (403 invalid media control lease).
- release the media only when no other live call still binds it;
- allow hanging up a call that no browser has bound yet (a ringing inbound
call has no lease to compare against);
- allow rejecting such a call even when the caller's media is already gone,
because dropping a ringing call needs no audio path.
Enabling VoLTE on a device without QMI ran the AT provisioning pass first: it
wrote UAC/USB settings into the module and set reboot_required, so the page said
"restart the modem" while the actual blocker was the absent QMI. The settings
stayed written for nothing, and restarting never helped.
Refuse before provisioning when the host cannot carry voice over QMI, clearing
any stale reboot flag. On the web side a failed phase now wins over a leftover
reboot_required, so the real error is what the operator reads.
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.