How to block phone numbers?
#5
(10-28-2020, 04:18 PM)natasha Wrote:
(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?
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

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.
  Reply


Messages In This Thread
How to block phone numbers? - by natasha - 10-21-2020, 08:48 AM
RE: How to block phone numbers? - by wibble - 10-24-2020, 10:05 AM
RE: How to block phone numbers? - by natasha - 10-28-2020, 04:18 PM
RE: How to block phone numbers? - by wibble - 10-29-2020, 04:11 PM
RE: How to block phone numbers? - by natasha - 11-03-2020, 02:48 PM
RE: How to block phone numbers? - by bilb - 10-26-2020, 07:24 AM
RE: How to block phone numbers? - by Arnavion - 07-19-2021, 01:02 AM
RE: How to block phone numbers? - by swiley - 07-19-2021, 09:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly lupyuen 64 15,430 09-09-2023, 09:49 AM
Last Post: WhiteHexagon
  Article: NuttX RTOS for PinePhone: Phone Calls and Text Messages lupyuen 2 1,437 05-03-2023, 05:03 PM
Last Post: lupyuen
  [Stupid Question] Where is the phone camera software?! newusername 5 2,936 10-10-2022, 03:58 AM
Last Post: newusername
Question New user/phone here - initial update issues sexywheat 2 1,729 06-29-2022, 04:27 PM
Last Post: sexywheat
  Which apps can I run on this phone? poppyhodler 2 2,293 06-07-2022, 12:18 PM
Last Post: jenniferjohn12
  Phone Operation which SW Realease (mute funtion)? scrwbigtek 0 848 05-25-2022, 07:35 AM
Last Post: scrwbigtek
  Jami on the Pine phone ? bcnaz 7 5,685 04-03-2022, 12:10 PM
Last Post: Fish
  First time pine phone user Matt73 3 2,511 03-10-2022, 02:04 AM
Last Post: Matt73
  Phone Shell Nextcloud message notifications: turn them off? lsitongia 0 1,222 09-28-2021, 11:04 AM
Last Post: lsitongia
  Pine phone Battery life vs operating system bcnaz 19 21,370 08-27-2021, 09:35 PM
Last Post: bcnaz

Forum Jump:


Users browsing this thread: 1 Guest(s)