redirect incoming/outgoing calls ans sms
#1
Hy, i'm currently developping calendar and contacts webapps using node.js as websocket.
I'm searching for all available CLI commands/systemd units doing the following :
- detect an incoming call and forward the phone number directly to a local URL.
- detect an incoming sms and forward the phone number and the message datas to a local URL.
- making a new call from the CLI (providing of course the phone number).
- sending a new sms from the CLI (providing the phone number to call + datas).
Thanks for your help.
#2
Both ModemManager and oFono use dbus interfaces that you should be able to interact with. ModemManager has mmcli as a thin command line wrapper round the dbus interface. I don't know if oFono has an equivalent, or expects you to use something like dbus-send instead. I'm not sure either of these will let you subscribe to signals either, so you may need to do that yourself for detecting incoming stuff. On the 'making a new call' front they will create the call, but it'll be up to you to make the audio routing changes needed for you to be able to hear and be heard.
#3
Thanks for your response. To make a new call from CLI with node.js, i finally used "pkexec --user mobian env DISPLAY=:0 XAUTHORITY=/home/mobian/.Xauthority calls -l $NUMBER", and it works - even with the lock screen on...
I rewrote my contact app Cockatoo (which is now very similar with the old one on Firefox OS) and my Cactus (calendar) webapp.
These apps are still in dev, but you can already test and use them if you want (cf. https://alsatux.com/Pinephone).
I must admit : dbus is a lot more complicated for me, and i don't have an eternity to find the good commands.
So if someone knows how to retrieve the phone number when a call is coming, i could then easily open the browser to Cockatoo URL, then retrieve the contact associated...


Possibly Related Threads…
Thread Author Replies Views Last Post
  4G VoLTE calls confirmed working with carrier x dcinoz 15 15,413 03-09-2024, 11:38 PM
Last Post: dcinoz
  Buetooth handsfree calls on PinPhone alabasha 7 3,084 08-18-2023, 09:29 AM
Last Post: Zebulon Walton
  pinephone no longer receiving calls or texts jyoung 3 2,525 07-16-2023, 10:05 PM
Last Post: jyoung
  Handsfree bluetooth calls conifera 0 1,061 02-28-2023, 02:07 PM
Last Post: conifera
  Calls, SMS benedikt55 1 1,358 12-13-2022, 10:42 AM
Last Post: treebeard
  Can you make reliable calls yet? orbital 26 15,780 10-11-2022, 10:52 PM
Last Post: better
  phone calls are enough for now wehape2bees 2 2,537 07-30-2022, 06:06 PM
Last Post: zetabeta
  Mute function on calls? scrwbigtek 0 956 05-30-2022, 12:52 PM
Last Post: scrwbigtek
  Problem with incoming calls (w/o ModemManager/Ofono) jlucas 10 9,263 08-09-2021, 05:38 PM
Last Post: mouffa
  Modem Open Stack - ingoing calls nak/outgoing calls ok fpb4 1 2,545 08-09-2021, 11:47 AM
Last Post: fpb4

Forum Jump:


Users browsing this thread: 1 Guest(s)