10-29-2020, 04:11 PM
(10-28-2020, 04:18 PM)natasha Wrote:Mobian is using and contributing back to Purism's apps I think. You could request through https://gitlab.com/mobian1/issues/-/issues or upstream at https://source.puri.sm/Librem5/calls/-/issues(10-24-2020, 10:05 AM)wibble Wrote: I don't know if any of the existing phone apps do it. It's the obvious place to add it so it can be integrated into the UI, but I think you could implement it as a standalone app too, registering for dbus notification on call and rejecting if it's from a blocked number. To be universal you'd nee to cover both ofono and modemmanager dbus interfaces, but the logic should be more or less the same.Thanks for your answer. I really think this should be included in the phone apps.
Do you know how to officially suggest this to Mobian?
Btw, I also like the idea of writing my own code. I do not have the knowledge to communicate to the dbus interfaces. I don't know what are they.
If I can my own code I could selectively block unkown phones outside my area, but accept from particular areas. So, I could put my own rules.
So, how do I communicate (I am a python person) with the phone communications?
Have a look at https://dbus.freedesktop.org/doc/dbus-python/index.html for some general coverage of dbus in python, and https://www.freedesktop.org/software/Mod...-dbus.html for the ModemManager interfaces. See in particular the Voice interface - you'll probably listen for the CallAdded signal, check the number against your blocklist, and if it matches use the DeleteCall method to drop it. You'll need to deal with the modem disappearing and reappearing too - at a guess you'll need to reregister the listener every time a 'new' modem appears.