call from command line

asked 2015-08-10 12:53:38 +0300

pan tau gravatar image

updated 2016-01-06 00:42:00 +0300

piero gravatar image

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
edit retag flag offensive close delete

Comments

3

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 +0300 )edit

great, 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 +0300 )edit

@LVPVS cool, and to end the call: gdbus 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 with pkcon 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.

baptx ( 2016-11-08 23:09:53 +0300 )edit