call from command line
how to:
create outgoing call from command line?
detect if person answered or rejected call
hang call
thinking about scenaria where jolla make call to specific person and idealy change pulseaudio routes to play mp3 instead sound from microphone
purpose: call service man if there is new support ticket, to force his action even in night...
edit:
basic functionality works, if there are new email in Maildirs, count of emails is stored to text file, jolla via systemd timer checking that textfile over https (curl) and then store dialout time to prevent dialing often than minimal interval.
dbus needs in the dialout script which is called by systemd service:
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/100000/dbus/user_bus_socket
Hej,
For the first question, try this code:
gdbus call -e -d com.jolla.voicecall.ui -o / -m com.jolla.voicecall.ui.dial '+0123...'
LVPVS out.
LVPVS ( 2015-08-10 21:24:00 +0200 )editgreat, thank you
i also found Mute speaker signal, but as i am not friend with dbus i had no luck on send signal properly (syntax)
i wonder if there is any way how to detect if person rejected or accepted call
pan tau ( 2015-09-01 02:17:03 +0200 )edit@LVPVS cool, and to end the call:
baptx ( 2016-11-08 23:09:53 +0200 )editgdbus call -e -d org.nemomobile.voicecall -o ``/usr/lib/qt5/bin/qdbus org.nemomobile.voicecall | grep "/calls/.\{32\}"`` -m org.nemomobile.voicecall.VoiceCall.hangup
. I got these informations with dbus-monitor command. You can get qdbus command withpkcon install qt5-qttools-qdbus
. PS: there is no double backticks for qdbus command, only one backtick at the beginning and the end of command but I don't know how to escape backticks with Askbot used by together.jolla.com.Dialling with the string
jollajo ( 2019-11-26 17:52:16 +0200 )editgdbus call -e -d com.jolla.voicecall.ui -o / -m com.jolla.voicecall.ui.dial '+0123...'
doesn't work for me on XA2+ with dual sim. Is there an extra parameter to specify the sim to use for the call?As alread implied by @baptx in his comment, I just found out that in more recent Versions of SFOS the destination and method parameter have changed to "org.nemomobile.voicecall" and "org.nemomobile.voicecall.VoiceCallManager.dial".
jollajo ( 2019-11-26 20:45:54 +0200 )edit