modem: fix missing call log entries and rejected calls still ringing

On a freshly flashed image the root-run dual-SIM daemon created
~/.local/share/sxmo/modem as root. sxmo_modemcall.sh runs under set -e,
so its failed modemlog.tsv write aborted hangup() before the call was
ended on the network (the caller kept ringing), and no call was ever
logged for xcalllog.

- dsds-daemon: create the log and call state directories owned by user,
  append to modemlog.tsv through a helper that keeps it user-owned, and
  repair root-owned leftovers on start; never create /run/user/10000.
- sxmo_modemcall.sh: make log_event non-fatal and hang up on the network
  before logging and running the hangup/discard hooks.
- sxmo_modemmonitor.sh: only fall back to an unprivileged dsds-daemon
  when doas is unavailable, not whenever the root instance exits.
- apply-bananarchy-overlay.sh: pre-create the modem and block log
  directories in the image.
This commit is contained in:
Luxferre committed 2026-10-28 20:07:42 +02:00
1 parent 99e2280590
commit a4dbf71af9
5 files changed
+119 -33

No files matched your search

+2
View File
@@ -28,6 +28,8 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
- ReMEdy audio follows the system speaker volume and mute state (the xdrawer **Speaker** slider, `~/.config/sxmo/speaker_vol`, and `SPK DAC Switch`) live while a MIDlet runs. The pause menu **Audio** item changes the system speaker volume with `Left` / `Right` and toggles ReMEdy sound with `OK`.
- **Dual-SIM PIN prompt fix**:
- Fixed SIM PIN startup prompting (`sxmo_sim_pin_prompt.sh`) so that when two SIM cards are inserted and only one requires PIN entry, only a single PIN prompt is shown (polling live `uim-get-card-status` per slot and deduplicating simultaneous `sxmo_modemmonitor.sh` / `bananarchy-x11-session.sh` invocations via `flock`).
- **Call log and call rejection fix**:
- Fixed incoming and outgoing calls not appearing in the call log (`xcalllog`) and rejected incoming calls continuing to ring for the caller on freshly flashed images: the root-run dual-SIM daemon (`msm-modem-uim-selection dsds-daemon`) created `~/.local/share/sxmo/modem` as `root`, so `sxmo_modemcall.sh` (running under `set -e`) aborted on the failed `modemlog.tsv` write before hanging up. The daemon now keeps the call log, SMS logs, and call state files owned by `user` (and repairs existing root-owned ones), the image pre-creates the log directories, `sxmo_modemcall.sh` ends the call on the network before logging and running hooks, and `sxmo_modemmonitor.sh` no longer replaces a restarted root daemon with an unprivileged one.
---