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
  What OS will actually work with phone calls? Nutmeg 6 330 06-19-2021, 11:41 PM
Last Post: hiimtye
  VoLTE calls with o2 (Germany) arno_nuehm 5 848 06-09-2021, 10:29 AM
Last Post: asz
  Modem Open Stack - ingoing calls nak/outgoing calls ok fpb4 0 292 04-20-2021, 12:20 PM
Last Post: fpb4
  PinePhone can't make outbound calls rocketchik24 3 813 04-11-2021, 03:57 PM
Last Post: dukla2000
  4G VoLTE calls confirmed working with carrier x dcinoz 4 1,957 02-19-2021, 06:38 AM
Last Post: zetabeta
  Phone calls on New PMOS Community Edition phones bcnaz 3 1,978 09-15-2020, 03:32 AM
Last Post: bcnaz

Forum Jump:


Users browsing this thread: 1 Guest(s)