ofonod: GNOME Calls backend over org.ofono for Phosh and GNOME Mobile
imsd-ofonod presents imsd on the system bus as an oFono modem — Manager at /, Modem + VoiceCallManager at /imsd, a VoiceCall object per call — which is what GNOME Calls' bundled ofono provider drives; Calls, Phosh and GNOME Shell run unmodified. org.gnome.Calls is not a seam a third party can provide (Calls exports it, nothing feeds it), and Calls' provider plugins link private headers, so org.ofono is the only D-Bus contract available. Pure GDBus translation of net.catcrafts.IMS1, no core, like imsd-dialerd. Packaged as the opt-in imsd-ofono subpackage: the daemon, its unit (Conflicts=ofono.service), the system-bus policy and a gschema override that points Calls at the ofono provider instead of mm (the ModemManager origin would offer the modem's CS voice path, which carries no audio on these phones). The policy grants root send_destination=org.ofono: under dbus-broker a broadcast is checked against the sender's send policy for every name the receiver owns, so without it imsd's call signals never reach the daemon. Verified on a Fairphone 6 with GNOME Calls 50.0: outgoing and incoming calls with audio both ways, answered and hung up through org.gnome.Calls.Call. Known Calls-side gap documented in the README: after the VoiceCallManager interface is withdrawn and re-added, Calls keeps the old origin's CallAdded handler and eventually crashes.
This commit is contained in:
parent
6689b8b252
commit
b986eb3750
11 changed files with 1037 additions and 13 deletions
|
|
@ -24,8 +24,11 @@ depends="modemmanager libc++ opencore-amr vo-amrwbenc pipewire-tools"
|
|||
# (fp6 journal/ims.md s57) — the two IMS stacks cannot share one PDN
|
||||
provides="81voltd=$pkgver-r$pkgrel"
|
||||
# no OpenRC service yet: the unit's PDN-bring-up/env-file sequencing is only
|
||||
# tested under systemd; an initd is welcome once someone can verify one
|
||||
subpackages="$pkgname-systemd"
|
||||
# tested under systemd; an initd is welcome once someone can verify one.
|
||||
# see packaging/APKBUILD: the org.ofono shim for GNOME Calls is opt-in
|
||||
# (ofono before systemd: systemd() amoves all of usr/lib/systemd/system,
|
||||
# so ofono() must take imsd-ofonod.service first)
|
||||
subpackages="$pkgname-ofono:ofono $pkgname-systemd"
|
||||
options="!check !tracedeps"
|
||||
source="
|
||||
imsd-$pkgver.tar.gz
|
||||
|
|
@ -60,6 +63,22 @@ package() {
|
|||
mkdir -p "$pkgdir"/usr/lib/systemd/system/imsd.service.d
|
||||
printf '[Unit]\nConditionPathExists=/etc/imsd.env\n' \
|
||||
> "$pkgdir"/usr/lib/systemd/system/imsd.service.d/10-require-config.conf
|
||||
install -Dm755 imsd-ofonod "$pkgdir"/usr/bin/imsd-ofonod
|
||||
install -Dm644 imsd-ofonod.service \
|
||||
"$pkgdir"/usr/lib/systemd/system/imsd-ofonod.service
|
||||
install -Dm644 org.ofono.conf \
|
||||
"$pkgdir"/usr/share/dbus-1/system.d/imsd-ofono.conf
|
||||
install -Dm644 90_imsd-ofono.gschema.override \
|
||||
"$pkgdir"/usr/share/glib-2.0/schemas/90_imsd-ofono.gschema.override
|
||||
}
|
||||
|
||||
ofono() {
|
||||
pkgdesc="GNOME Calls (Phosh, GNOME Mobile) backend for imsd"
|
||||
depends="$pkgname=$pkgver-r$pkgrel calls"
|
||||
amove usr/bin/imsd-ofonod
|
||||
amove usr/lib/systemd/system/imsd-ofonod.service
|
||||
amove usr/share/dbus-1/system.d/imsd-ofono.conf
|
||||
amove usr/share/glib-2.0/schemas/90_imsd-ofono.gschema.override
|
||||
}
|
||||
|
||||
systemd() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue