Trigger a call remotely

The Sailfish-connect app is a great app very well done to work as KDEconnect client: it allows even to trigger a call from linux computer.
In the search for an integration with the other devices I missed the possibility to trigger a call from another smartphone with Kdeconnect, so I created the following .sh script:

#!/bin/bash
num=$(wl-paste);
gdbus call -e -d com.jolla.voicecall.ui -o / -m com.jolla.voicecall.ui.dial '$num'

I placed it in /home/defaultuser folder (I called it call.sh)
Usage:
I find on my tablet/other smartphone/device a number I want to call.

  1. I copy it on my clipboard
  2. I use Kdeconnect plugin to “send the clipboard” to my SFos phone (the one capable of making calls)
  3. I run the “custom command” in kdeconnect

I hope this can help.

P.S. I did this after giving up attempts of configuring my tablet as a bluetooth host for PBAP and HFP protocols like a car radio does.
P.P.S. don’t use latest sailfish-connect release because it not allows clipboard handling nor custom commands. Use harbour-sailfishconnect-0.6.2-1

2 Likes